+ @expose()
+ def activate(self, id, activo):
+ """Save or create record to model"""
+ r = validate_get(id)
+ try:
+ r.activo = bool(int(activo))
+ except ValueError:
+ raise cherrypy.NotFound
+ raise redirect('../../list')
+
+ @expose(template='kid:%s.templates.new' % __name__)