From 7c2f57d80a29bc2633f0f6ab9b6f1c4df31342cd Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 22 Feb 2007 03:25:44 +0000 Subject: [PATCH 1/1] =?utf8?q?Arreglar=20TupleCol.=20Faltaban=20propagar?= =?utf8?q?=20algunos=20par=C3=A1metros=20de=20TupleCol=20y=20se=20elimina?= =?utf8?q?=20c=C3=B3digo=20superfluo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sercom/model.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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): -- 2.43.0