label = res.enunciados[i].nombre;
MochiKit.DOM.appendChildNodes("form_enunciadoID", OPTION({"value":id}, label))
}
label = res.enunciados[i].nombre;
MochiKit.DOM.appendChildNodes("form_enunciadoID", OPTION({"value":id}, label))
}
#{{{ Controlador
class EjercicioController(controllers.Controller, identity.SecureResource):
"""Basic model admin interface"""
#{{{ Controlador
class EjercicioController(controllers.Controller, identity.SecureResource):
"""Basic model admin interface"""
return dict(records=r, name=name, namepl=namepl, parcial=autor)
@expose(template='kid:%s.templates.new' % __name__)
return dict(records=r, name=name, namepl=namepl, parcial=autor)
@expose(template='kid:%s.templates.new' % __name__)
def new(self, **kw):
"""Create new records in model"""
return dict(name=name, namepl=namepl, form=form, values=kw)
@validate(form=form)
@error_handler(new)
def new(self, **kw):
"""Create new records in model"""
return dict(name=name, namepl=namepl, form=form, values=kw)
@validate(form=form)
@error_handler(new)
def edit(self, id, **kw):
"""Edit record in model"""
r = validate_get(id)
def edit(self, id, **kw):
"""Edit record in model"""
r = validate_get(id)
def update(self, id, **kw):
"""Save or create record to model"""
r = validate_set(id, kw)
def update(self, id, **kw):
"""Save or create record to model"""
r = validate_set(id, kw)