from turbogears import controllers, expose, redirect
from turbogears import validate, validators, flash, error_handler
from turbogears.widgets import *
from turbogears import controllers, expose, redirect
from turbogears import validate, validators, flash, error_handler
from turbogears.widgets import *
from docutils.core import publish_parts
from sercom.subcontrollers import validate as val
from sercom.model import Enunciado, Docente
from docutils.core import publish_parts
from sercom.subcontrollers import validate as val
from sercom.model import Enunciado, Docente
TextField(name='descripcion', label=_(u'Descripción'),
validator=validators.UnicodeString(not_empty=False, max=255, strip=True)),
])
TextField(name='descripcion', label=_(u'Descripción'),
validator=validators.UnicodeString(not_empty=False, max=255, strip=True)),
])
class EnunciadoController(controllers.Controller, identity.SecureResource):
"""Basic model admin interface"""
require = identity.has_permission('admin')
class EnunciadoController(controllers.Controller, identity.SecureResource):
"""Basic model admin interface"""
require = identity.has_permission('admin')