X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/5f0aa446e2907839443bccf17f7bc527d0a2b665..2cc63705e0752cf7fdd0bbc2660904b94f2d65be:/sercom/subcontrollers/curso/alumno/__init__.py diff --git a/sercom/subcontrollers/curso/alumno/__init__.py b/sercom/subcontrollers/curso/alumno/__init__.py index 763bc06..26b87a2 100644 --- a/sercom/subcontrollers/curso/alumno/__init__.py +++ b/sercom/subcontrollers/curso/alumno/__init__.py @@ -70,7 +70,8 @@ class AlumnoInscriptoController(controllers.Controller, identity.SecureResource) raise redirect('..') else: r = cls.select(cls.q.cursoID == cursoID) - return dict(records=r, name=name, namepl=namepl, cursoid=cursoID) + curso = Curso.get(cursoID) + return dict(records=r, name=name, namepl=namepl, curso=curso) @expose(template='kid:%s.templates.notas' % __name__) def notas(self, id, cursoID, **kw): @@ -90,11 +91,10 @@ class AlumnoInscriptoController(controllers.Controller, identity.SecureResource) raise redirect('../list/%d' % cursoID) @expose(template='kid:%s.templates.show' % __name__) - def show(self,id,cursoID, **kw): + def show(self,id, **kw): """Show record in model""" - cursoID = int(cursoID) r = validate_get(id) - return dict(name=name, namepl=namepl, record=r, cursoid=cursoID) + return dict(name=name, namepl=namepl, record=r) #}}}