from Products.Archetypes.public import DisplayList from Products.CMFCore.utils import getToolByName from ebc.automator.interfaces import IChamadaDocumentario from ebc.automator.config import PROJECTNAME ChamadaDocumentarioSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( 'voz', storage=atapi.AnnotationStorage(), widget=atapi.SelectionWidget( label=_(u"Voz"), description=_(u"Selecione a voz."), format="select", ), required=True, vocabulary=NamedVocabulary("""voz"""), ), atapi.StringField( 'dia', storage=atapi.AnnotationStorage(), widget=atapi.SelectionWidget( label=_(u"Dia da semana"), format="select", ), required=True,
# -*- Message Factory Imported Here -*- from ebc.automator import automatorMessageFactory as _ from ebc.automator.interfaces import IFacebookMinistros from ebc.automator.config import PROJECTNAME FacebookMinistrosSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( 'nome', storage=atapi.AnnotationStorage(), widget=atapi.StringWidget( label=_(u"Nome"), ), required=True, ), atapi.StringField( 'cargo', storage=atapi.AnnotationStorage(), widget=atapi.StringWidget( label=_(u"Cargo"), ), required=True, ), atapi.StringField( 'local',
# -*- Message Factory Imported Here -*- from ebc.automator import automatorMessageFactory as _ from ebc.automator.interfaces import IFacebookDilma from ebc.automator.config import PROJECTNAME FacebookDilmaSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( 'local', storage=atapi.AnnotationStorage(), widget=atapi.StringWidget( label=_(u"Local"), ), required=True, ), atapi.DateTimeField( 'data', storage=atapi.AnnotationStorage(), widget=atapi.CalendarWidget( label=_(u"Data"), format='%d/%m/%Y', starting_year='2016', show_hm=False, ), required=True, default_method = 'getDefaultTime',
from Products.Archetypes.public import DisplayList from Products.CMFCore.utils import getToolByName from Products.DataGridField import DataGridField, DataGridWidget from Products.DataGridField.Column import Column from Products.DataGridField.SelectColumn import SelectColumn QuadrodeMedalhasSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( 'voz', storage=atapi.AnnotationStorage(), widget=atapi.SelectionWidget( label=_(u"Voz"), description=_(u"Selecione a voz"), format="select", ), required=True, vocabulary=NamedVocabulary("""voz"""), ), DataGridField('Paises', searchable = True, columns=("pais", "ouro", "prata", "bronze"), widget = DataGridWidget( columns={ 'pais' : SelectColumn("País", vocabulary="getListaPaises"), 'ouro' : Column("Ouro"), 'prata' : Column("Prata"),
from ebc.automator.interfaces import IChamada3telas from ebc.automator.config import PROJECTNAME from Products.ATVocabularyManager import NamedVocabulary from Products.Archetypes.public import DisplayList from Products.CMFCore.utils import getToolByName Chamada3telasSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( 'tipo', storage=atapi.AnnotationStorage(), widget=atapi.SelectionWidget( label=_(u"Tipo"), description=_(u"Selecione o tipo"), format="select", ), required=True, vocabulary=NamedVocabulary("""tipo"""), ), atapi.StringField( 'voz', storage=atapi.AnnotationStorage(), widget=atapi.SelectionWidget( label=_(u"Voz"), description=_(u"Selecione a voz"), format="select", ),
# -*- Message Factory Imported Here -*- from ebc.automator import automatorMessageFactory as _ from ebc.automator.interfaces import IFacebookOutros from ebc.automator.config import PROJECTNAME FacebookOutrosSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( 'nome', storage=atapi.AnnotationStorage(), widget=atapi.StringWidget( label=_(u"Nome"), ), required=True, ), atapi.StringField( 'cargo', storage=atapi.AnnotationStorage(), widget=atapi.StringWidget( label=_(u"Cargo"), ), required=True, ), atapi.StringField( 'tema1',
from ebc.automator.interfaces import IASeguir from ebc.automator.config import PROJECTNAME from Products.ATVocabularyManager import NamedVocabulary from Products.Archetypes.public import DisplayList from Products.CMFCore.utils import getToolByName ASeguirSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( 'voz', storage=atapi.AnnotationStorage(), widget=atapi.SelectionWidget( label=_(u"Voz"), description=_(u"Selecione a voz."), format="select", ), required=True, vocabulary=NamedVocabulary("""voz"""), ), atapi.StringField( 'programa', storage=atapi.AnnotationStorage(), widget=atapi.SelectionWidget( label=_(u"Programa"), description=_(u"Selecione o programa"), format="select", ),
# -*- Message Factory Imported Here -*- from ebc.automator import automatorMessageFactory as _ from ebc.automator.interfaces import ITwitterBoletim from ebc.automator.config import PROJECTNAME TwitterBoletimSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( 'nome', storage=atapi.AnnotationStorage(), widget=atapi.StringWidget( label=_(u"Nome"), ), required=True, ), atapi.StringField( 'mensagem', storage=atapi.AnnotationStorage(), widget=atapi.TextAreaWidget( label=_(u"Mensagem"), ), required=True, ), ))
from ebc.automator import automatorMessageFactory as _ from ebc.automator.interfaces import IChamada from ebc.automator.config import PROJECTNAME from Products.ATVocabularyManager import NamedVocabulary from Products.Archetypes.public import DisplayList from Products.CMFCore.utils import getToolByName ChamadaSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema( ( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( "tipo", storage=atapi.AnnotationStorage(), widget=atapi.SelectionWidget(label=_(u"Tipo"), description=_(u"Selecione o tipo."), format="select"), required=True, vocabulary=NamedVocabulary("""tipo"""), ), atapi.StringField( "voz", storage=atapi.AnnotationStorage(), widget=atapi.SelectionWidget(label=_(u"Voz"), description=_(u"Selecione a voz."), format="select"), required=True, vocabulary=NamedVocabulary("""voz"""), ), atapi.StringField( "programa1", storage=atapi.AnnotationStorage(), widget=atapi.SelectionWidget( label=_(u"Programa 1"), description=_(u"Selecione o programa 1"), format="select"
# -*- Message Factory Imported Here -*- from ebc.automator import automatorMessageFactory as _ from ebc.automator.interfaces import IInfoOlimpiadas from ebc.automator.config import PROJECTNAME InfoOlimpiadasSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- atapi.StringField( 'mensagem', storage=atapi.AnnotationStorage(), widget=atapi.StringWidget( label=_(u"Mensagem"), maxlength=150, size=50, ), required=True, ), atapi.StringField( 'credito', storage=atapi.AnnotationStorage(), widget=atapi.StringWidget( label=_(u"Credito"), maxlength=50, size=50, ), required=True,