示例#1
0
 def __str__(self):
     from enunciados.utils import cuatrimestres_parser
     texto_cuatrimestre = cuatrimestres_parser.numero_a_texto(
         self.cuatrimestre)
     return 'Práctica {} del {} del {}'.format(self.numero,
                                               texto_cuatrimestre,
                                               self.anio)
示例#2
0
 def __str__(self):
     from enunciados.utils import cuatrimestres_parser
     texto_cuatrimestre = cuatrimestres_parser.numero_a_texto(
         self.cuatrimestre)
     nombre = 'Parcial'
     if self.recuperatorio:
         nombre = 'Recuperatorio'
     return '{} {} del {} del {}'.format(self.ordinal()['singular'], nombre,
                                         texto_cuatrimestre, self.anio)
示例#3
0
def cuatrimestre_y_anio_a_texto(conjunto):
    texto_cuatrimestre = cuatrimestres_parser.numero_a_texto(
        conjunto.cuatrimestre)
    return '{} del {}'.format(texto_cuatrimestre, conjunto.anio)
示例#4
0
def texto_cuatrimestre(numero):
    """Devuelve un texto correspondiente al número de este cuatrimestre"""
    return cuatrimestres_parser.numero_a_texto(numero)