From: Leandro Lucarella Date: Tue, 13 Mar 2007 23:55:41 +0000 (+0000) Subject: Agregar método Entrega.make_correccion(). X-Git-Tag: 0_9_0~153 X-Git-Url: https://git.llucax.com/software/sercom.git/commitdiff_plain/9a300bd78c09c4212613ecccbc4ee7363ef16b92?ds=sidebyside Agregar método Entrega.make_correccion(). --- diff --git a/sercom/model.py b/sercom/model.py index ca1553e..41c4ced 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -783,6 +783,10 @@ class Entrega(Ejecucion): #{{{ # FIXME self.id, caso_de_prueba Prueba.pk.get(self.id, caso_de_prueba).destroySelf() + def make_correccion(self, corrector, **kw): + return Correccion(instancia=self.instancia, entregador=self.entregador, + entrega=self, corrector=corrector, **kw) + def __repr__(self): return super(Entrega, self).__repr__('instancia=%s, entregador=%s, ' 'fecha=%s' % (self.instancia.shortrepr(), srepr(self.entregador),