X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/5cd1df8c26d5462fed3d660d965d5e2e34af8119..b784363dcb9c7bf8e242c68950c77fb11ee5356a:/sercom/controllers.py diff --git a/sercom/controllers.py b/sercom/controllers.py index 5e785ea..714869a 100644 --- a/sercom/controllers.py +++ b/sercom/controllers.py @@ -7,7 +7,7 @@ from cherrypy import request, response from model import * # from sercom import json -from subcontrollers import DocenteController +from subcontrollers import * import logging log = logging.getLogger("sercom.controllers") @@ -62,6 +62,8 @@ class Root(controllers.RootController): login_form = w.TableForm(fields=fields, action=previous_url, submit_text=_(u'Ingresar'), submit=submit) + login_form.javascript.append( + w.JSSource("MochiKit.DOM.focusOnLoad('form_login_user');")) values = dict(forward_url=forward_url) values.update(request.params) @@ -77,6 +79,10 @@ class Root(controllers.RootController): docente = DocenteController() + enunciado = EnunciadoController() + + caso_de_prueba = CasoDePruebaController() + #{{{ Agrega summarize a namespace tg de KID def summarize(text, size, concat=True, continuation='...'): """Summarize a string if it's length is greater than a specified size. This