X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/56b48df0e8dedb8021b217cafb2a56ce583edab2..6cca1806c88f675940161b6b452301532badc78c:/sercom/model.py diff --git a/sercom/model.py b/sercom/model.py index 1909de6..2a7f472 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -281,8 +281,6 @@ class Tarea(InheritableSQLObject): #{{{ nombre = UnicodeCol(length=30, alternateID=True) # Campos descripcion = UnicodeCol(length=255, default=None) - terminar_si_falla = BoolCol(notNone=True, default=True) - rechazar_si_falla = BoolCol(notNone=True, default=True) # Joins enunciados = RelatedJoin('Enunciado', addRemoveName='_enunciado') @@ -405,7 +403,7 @@ class ComandoPrueba(Comando): #{{{ pk = DatabaseIndex(tarea, orden, unique=True) def __repr__(self): - return super(ComandoFuente, self).__repr__('tarea=%s, orden=%s' + return super(ComandoPrueba, self).__repr__('tarea=%s, orden=%s' % (self.tarea.shortrepr(), self.orden)) def shortrepr(self): @@ -832,7 +830,7 @@ class ComandoFuenteEjecutado(ComandoEjecutado): #{{{ self.entrega.shortrepr())) def shortrepr(self): - return '%s-%s' % (self.tarea.shortrepr(), self.entrega.shortrepr()) + return '%s-%s' % (self.comando.shortrepr(), self.entrega.shortrepr()) #}}} class ComandoPruebaEjecutado(ComandoEjecutado): #{{{