From 57da76833fa5e128c7039d057022d7c2b648626e Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Thu, 1 Mar 2007 20:48:03 +0000 Subject: [PATCH] Seteo la hora de correccion --- sercom/subcontrollers/correccion/__init__.py | 2 ++ sercom/subcontrollers/correccion/templates/list.kid | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sercom/subcontrollers/correccion/__init__.py b/sercom/subcontrollers/correccion/__init__.py index 0461f9a..162a56f 100644 --- a/sercom/subcontrollers/correccion/__init__.py +++ b/sercom/subcontrollers/correccion/__init__.py @@ -81,9 +81,11 @@ class CorreccionController(controllers.Controller, identity.SecureResource): @expose() def update(self, id, **kw): """Save or create record to model""" + from sqlobject import DateTimeCol r = Correccion.get(id) r.nota = kw['nota'] r.observaciones = kw['observaciones'] + r.corregido = DateTimeCol.now() flash(_(u'El %s fue actualizado.') % name) raise redirect('../list') diff --git a/sercom/subcontrollers/correccion/templates/list.kid b/sercom/subcontrollers/correccion/templates/list.kid index 0157f61..aefbe0b 100644 --- a/sercom/subcontrollers/correccion/templates/list.kid +++ b/sercom/subcontrollers/correccion/templates/list.kid @@ -31,7 +31,7 @@ Ver Corregir - Editar + Editar -- 2.43.0