from Products.Collage.interfaces import ICollageColumn from Products.Collage.utilities import CollageMessageFactory as _ from zope.interface import implementer try: from Products.LinguaPlone import public as atapi except ImportError: from Products.Archetypes import atapi CollageColumnSchema = atapi.BaseContent.schema.copy() + atapi.Schema( (atapi.StringField( name='title', accessor='Title', required=False, searchable=True, widget=atapi.StringWidget( label=_(u'label_optional_column_title', default=u"Title"), description=_( u'help_optional_column_title', default=u"You may optionally supply a title for this column."), )), )) CollageColumnSchema = CollageColumnSchema + CommonCollageSchema.copy() # move description to main edit page CollageColumnSchema['description'].schemata = 'default' # never show row in navigation, also when its selected CollageColumnSchema['excludeFromNav'].default = True # support show in navigation feature and at marshalling
BookSchema = ( folder.ATFolderSchema.copy() + NextPreviousAwareSchema.copy() + atapi.Schema(( atapi.IntegerField(name='web_toc_depth', default=0, searchable=False, widget=atapi.IntegerWidget( label=_(u'label_web_toc_depth', default=u'Table of contents depth'), description=_(u'help_web_toc_depth', default=u''))), atapi.StringField( name='latex_layout', required=True, vocabulary_factory='ftw.book.layoutsVocabulary', default_method='getDefaultLaTeXLayout', widget=atapi.SelectionWidget( label=_(u'book_label_layout', default=u'Layout'))), atapi.BooleanField(name='use_titlepage', default=True, widget=atapi.BooleanWidget( label=_(u'book_label_use_titlepage', default=u'Embedd a title page'), description=_(u'book_help_use_titlepage', default=u''))), atapi.BooleanField(name='use_toc', default=True, widget=atapi.BooleanWidget( label=_(u'book_label_use_toc', default=u'Embedd table of contents'),
"Will be shown in the news listing, and in the news " "item itself. Image will be scaled to a sensible" " size and image width should be of minimum 1024px"), description_msgid="help_news_image", label="Image", label_msgid="label_news_image", i18n_domain="plone", show_content_type=False) ), public.StringField( name='imageLink', widget=public.StringWidget( label="Image Link", label_msgid="label_news_image_link", description="Enter a URL that the image should be linked to", description_msgid="help_image_link", i18n_domain='EEAContentTypes', size="40", ), validators=('isURL',), ), public.StringField( name='imageCaption', widget=public.StringWidget( label="Image Caption", description="Enter a caption for the image (max 5 words)", description_msgid="help_image_caption", label_msgid="label_image_caption", size="40", i18n_domain='EEAContentTypes',
# # Return the amount to be payed by the end user as a float number assert False, "Please complete your script" """ MiPagoAdapterSchema = formMailerAdapterSchema.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- atapi.StringField('mipago_cpr_code', languageIndependent=True, vocabulary=atapi.DisplayList([ ('9050299', _(u'9050299: Notebook 60, modality 1')), ('9052180', _(u'9052180: Notebook 60, modality 2')), ('9050794', _(u'9050794: Notebook 57')), ]), required=True, storage=atapi.AnnotationStorage(), searchable=False, widget=atapi.SelectionWidget( description='', label=_('Enter the CPR code of this payment'), size=7)), atapi.StringField( 'mipago_format', languageIndependent=True, vocabulary=atapi.DisplayList([ ('502', _(u'502: Notebook 60, modality 1, short format')), ('521', _(u'521: Notebook 60, modality 2, short format')), ('522', _(u'522: Notebook 60, modality 2, long format')), ('507', _(u'507: Notebook 57, short format')), ]),
from Products.Archetypes import atapi from Products.Poi import PoiMessageFactory as _ from Products.Poi import permissions from Products.Poi.config import PROJECTNAME from Products.Poi.interfaces import ITracker from Products.Poi.utils import linkBugs from Products.Poi.utils import linkSvn schema = atapi.Schema(( atapi.StringField( name='title', widget=atapi.StringWidget( label=_(u'Poi_label_tracker_title', default=u"Tracker name"), description=_( u'Poi_help_tracker_title', default=u"Enter a descriptive name for this tracker"), ), required=True, accessor="Title", searchable=True), atapi.TextField( name='description', widget=atapi.TextAreaWidget( label=_(u'Poi_label_tracker_description', default=u"Tracker description"), description=_(u'Poi_help_tracker_description', default=u"Describe the purpose of this tracker"), ), use_portal_factory="1", accessor="Description",
from Products.Collage.content.common import LayoutContainer from Products.Collage.interfaces import ICollage from Products.Collage.utilities import CollageMessageFactory as _ from zope.interface import implementer try: from Products.LinguaPlone import public as atapi except ImportError: from Products.Archetypes import atapi CollageSchema = atapi.BaseContent.schema.copy() + atapi.Schema(( atapi.StringField( name='title', searchable=True, widget=atapi.StringWidget( label='Title', label_msgid='label_title', i18n_domain='plone', ) ), atapi.TextField( name='description', searchable=True, widget=atapi.TextAreaWidget( label='Description', label_msgid='label_description', i18n_domain='plone', ) ), atapi.BooleanField(
required=False, storage=atapi.AnnotationStorage(), languageIndependent=True, max_size=zconf.ATNewsItem.max_image_dimension, sizes={}, validators=(('isNonEmptyFile', V_REQUIRED), ('checkNewsImageMaxSize', V_REQUIRED)), widget=atapi.ImageWidget(description=_( 'This image will be shown when this banner is active.'), label=_('Image'), show_content_type=False)), atapi.StringField('imageUrl', required=False, searchable=False, default="http://", widget=atapi.StringWidget(description=_( 'Instead of uploading an image, you may enter' ' the URL of an image hosted on another server.'), label=_('Image URL'), maxlength='511')), atapi.TextField( 'text', required=False, validators=('isTidyHtmlWithCleanup', ), default_output_type='text/x-html-safe', widget=atapi.RichWidget(label=_('Body'), ), ), )) # Set storage on fields copied from ATContentTypeSchema, making sure # they work well with the python bridge properties.
description=_(u"help_link_internal", default=u"Link to internal content. For external " u"content, use the External Link field."), allow_search=True, allow_browse=True, force_close_on_insert=True, startup_directory='/', ), ), atapi.StringField( 'link_external', required=False, searchable=False, languageIndependent=True, validators=("isURL"), widget=atapi.StringWidget( label=_(u"label_link_external", default=u"External Link"), description=_( u"help_link_external", default=u"Url to external content. For internal content, " u"use the field above. Use form http://WEBSITE.TLD/"), ), ), atapi.StringField( 'importance', required=True, searchable=True, languageIndependent=True, vocabulary_factory="collective.teaser.ImportanceVocabulary", enforceVocabulary=True, default=DEFAULT_IMPORTANCE, widget=atapi.SelectionWidget(