X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/82677387ef53d211fc481edb9c1b65ec04e18533..7c2f57d80a29bc2633f0f6ab9b6f1c4df31342cd:/sercom/model.py?ds=inline diff --git a/sercom/model.py b/sercom/model.py index 56e9853..06c132d 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -40,13 +40,9 @@ class TupleValidator(PickleValidator): return super(TupleValidator, self).from_python(value, state) class SOTupleCol(SOPickleCol): - - def __init__(self, **kw): - super(SOTupleCol, self).__init__(**kw) - def createValidators(self): - return [TupleValidator(name=self.name)] + \ - super(SOPickleCol, self).createValidators() + return [TupleValidator(name=self.name)] \ + + super(SOPickleCol, self).createValidators() class TupleCol(PickleCol): baseClass = SOTupleCol @@ -384,7 +380,7 @@ class CasoDePrueba(SQLObject): #{{{ def __repr__(self): return 'CasoDePrueba(enunciado=%s, nombre=%s, parametros=%s, ' \ 'retorno=%s, tiempo_cpu=%s, descripcion=%s)' \ - % (self.enunciado.shortrepr(), self.nombre, self.parametros, + % (srepr(self.enunciado), self.nombre, self.parametros, self.retorno, self.tiempo_cpu, self.descripcion) def shortrepr(self):