from sercom.subcontrollers import validate as val
from sercom.model import Ejercicio, Curso, Enunciado
from cherrypy import request, response
-
-from entrega import *
-
+from instancia import InstanciaController
#}}}
#{{{ Configuración
"""Basic model admin interface"""
require = identity.has_permission('entregar')
- entrega = EntregaController()
+ instancia = InstanciaController()
@expose(template='kid:%s.templates.list' % __name__)
@validate(validators=dict(curso=V.Int))
def list(self, curso):
"""List records in model"""
r = cls.selectBy(cursoID=curso).orderBy(cls.q.numero)
- return dict(records=r, name=name, namepl=namepl, curso=curso)
+ return dict(records=r, name=name, namepl=namepl, curso=Curso.get(curso))
@expose(template='kid:%s.templates.new' % __name__)
@validate(validators=dict(curso=V.Int))