From b784363dcb9c7bf8e242c68950c77fb11ee5356a Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 21 Feb 2007 04:08:53 +0000 Subject: [PATCH 1/1] =?utf8?q?Hacer=20funciones=20de=20validaci=C3=B3n=20m?= =?utf8?q?=C3=A1s=20legibles.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sercom/subcontrollers/docente/__init__.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sercom/subcontrollers/docente/__init__.py b/sercom/subcontrollers/docente/__init__.py index ff7e61b..12fd147 100644 --- a/sercom/subcontrollers/docente/__init__.py +++ b/sercom/subcontrollers/docente/__init__.py @@ -19,9 +19,14 @@ namepl = name + 's' #}}} #{{{ Validación -def validate_get(id): return val.validate_get(cls, name, id) -def validate_set(id, data): return val.validate_set(cls, name, id, data) -def validate_new(data): return val.validate_new(cls, name, data) +def validate_get(id): + return val.validate_get(cls, name, id) + +def validate_set(id, data): + return val.validate_set(cls, name, id, data) + +def validate_new(data): + return val.validate_new(cls, name, data) #}}} #{{{ Formulario -- 2.43.0