from cs.kontratazioa import kontratazioaMessageFactory as _
from cs.kontratazioa.interfaces import IkontratazioaFolder
from cs.kontratazioa.config import PROJECTNAME

kontratazioaFolderSchema = folder.ATFolderSchema.copy() + atapi.Schema((

    # -*- Your Archetypes field definitions here ... -*-
    atapi.LinesField(
        name='contract_type',
        storage=atapi.AnnotationStorage(),
        required=False,
        #searchable=1,
        #default='',
        #schemata ='default',
        widget=atapi.LinesWidget(
            label=_(u"contract_type"),
            description=_(u"Description of contract_type"),
        ),
    ),
    atapi.LinesField(
        name='process',
        storage=atapi.AnnotationStorage(),
        required=False,
        #searchable=1,
        #default='',
        #schemata ='default',
        widget=atapi.LinesWidget(
            label=_(u"process"),
            description=_(u"Description of process"),
        ),
    ),
示例#2
0

AldaketaSchema = folder.ATFolderSchema.copy() + atapi.Schema((

    # -*- Your Archetypes field definitions here ... -*-

    atapi.DateTimeField(
        name='akordioaren_data',
        storage=atapi.AnnotationStorage(),
        required=False,
        languageIndependent=1,
        #searchable=1,
        #default='',
        #schemata ='default',
        widget=atapi.CalendarWidget(
            label=_(u"akordioaren_data"),
        ),
    ),

    atapi.FileField('akordioa',
                  searchable=1,
                  storage=atapi.AnnotationStorage(migrate=True),
                  languageIndependent=1,
                  widget=atapi.FileWidget(
                     label=_(u'akordioa'),
                     ),
                  ),
    atapi.TextField('aldaketaren_zenbatekoa',
        required=False,
        searchable=True,
        storage=atapi.AnnotationStorage(),
from cs.kontratazioa.config import PROJECTNAME

fields = folder.ATFolderSchema.copy().fields()

kontratazioaSchema = atapi.ManagedSchema((
    # -*- Your Archetypes field definitions here ... -*-
    atapi.StringField(
        name='file_number',
        required=False,
        languageIndependent=1,
        storage=atapi.AnnotationStorage(),
        #searchable=1,
        #default='',
        #schemata ='default',
        widget=atapi.StringWidget(
            label=_(u"file_number"),
        ),
    ),
    atapi.StringField('contract_type',
                  searchable=1,
                  languageIndependent=0,
                  required=1,
                  vocabulary='selection_contract_type',
                  widget=atapi.SelectionWidget(
                     label=_(u'put_contract_type'),
                     ),
                  ),
    atapi.StringField('process',
                  searchable=1,
                  languageIndependent=0,
                  vocabulary='selection_process',