X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/dbebd6ebb551f40f51684f8653b373690f06e694..cc39dd201027d32cadcca25f954291432c43d1af:/sercom/subcontrollers/grupo/__init__.py diff --git a/sercom/subcontrollers/grupo/__init__.py b/sercom/subcontrollers/grupo/__init__.py index 8c5bdaa..1b5f3e1 100644 --- a/sercom/subcontrollers/grupo/__init__.py +++ b/sercom/subcontrollers/grupo/__init__.py @@ -109,6 +109,7 @@ class GrupoForm(W.TableForm): validator = V.Int(not_empty=True)) nombre = W.TextField(label=_(u'Nombre'), validator=V.UnicodeString(not_empty=True,strip=True)) responsable = CustomTextField(label=_(u'Responsable'), validator=V.UnicodeString(not_empty=True), attrs=dict(size='8')) + alumnos = AlumnoMultiSelect(label=_(u'Integrantes'), validator=V.Int()) fields = Fields() javascript = [W.JSSource("MochiKit.DOM.focusOnLoad('curso');"), W.JSSource(ajax)] @@ -192,6 +193,8 @@ class GrupoController(controllers.Controller, identity.SecureResource): alumno = AlumnoInscripto.select(AND(Curso.q.id==curso, Alumno.q.usuario==responsable)) if alumno.count() > 0: alumno = alumno[0] + else: + raise Exception except Exception, (inst): flash(_(u'El responsable %s no existe') % responsable) raise redirect('../list')