TextField(name='descripcion', label=_(u'Descripción'),
validator=validators.UnicodeString(not_empty=False, max=255, strip=True)),
])
+form.javascript.append(JSSource("MochiKit.DOM.focusOnLoad('form_nombre');"))
class EnunciadoController(controllers.Controller, identity.SecureResource):
"""Basic model admin interface"""
r = cls.select()
else:
r = cls.selectBy(autorID=autor)
- return dict(records=r, name=name, namepl=namepl)
+ return dict(records=r, name=name, namepl=namepl, parcial=autor)
@expose(template='kid:%s.templates.new' % __name__)
def new(self, **kw):