SHARE
TWEET

Exercício 6: O Schema de Programa

luizfereira Aug 13th, 2015 16 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## coding=utf-8
  2.  
  3. ### varios imports ###
  4.  
  5. from plone.supermodel import model
  6.  
  7. class IPrograma(model.Schema):
  8.     """
  9.    A programacao de uma conferencia
  10.    """
  11.  
  12.     title = schema.TextLine(title=_(u"Nome do programa"),)
  13.  
  14.     description = schema.Text(title=_(u"Sumário do programa"),)
  15.  
  16.     start = schema.Datetime(title=_(u"Data de Início"), required=False,)
  17.  
  18.     end = schema.Datetime(title=_(u"Data de Término"), required=False,)
  19.  
  20.     details = RichText(title=_(u"Detalhes"), description=_(u"Detalhes sobre o programa"), required=False,)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top