Exemplo n.º 1
0
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,
Exemplo n.º 2
0
# -*- 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',
Exemplo n.º 3
0
# -*- 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',
Exemplo n.º 4
0
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"),
Exemplo n.º 5
0
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",
        ),
Exemplo n.º 6
0
# -*- 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',
Exemplo n.º 7
0
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",
        ),
Exemplo n.º 8
0
# -*- 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,
    ),

))
Exemplo n.º 9
0
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"
Exemplo n.º 10
0
# -*- 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,