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)
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)
def cuatrimestre_y_anio_a_texto(conjunto): texto_cuatrimestre = cuatrimestres_parser.numero_a_texto( conjunto.cuatrimestre) return '{} del {}'.format(texto_cuatrimestre, conjunto.anio)
def texto_cuatrimestre(numero): """Devuelve un texto correspondiente al número de este cuatrimestre""" return cuatrimestres_parser.numero_a_texto(numero)