description=_(u'Poi_help_tracker_description', default=u"Describe the purpose of this tracker"), ), use_portal_factory="1", accessor="Description", searchable=True, allowable_content_types=('text/plain'), ), atapi.TextField( name='helpText', allowable_content_types=('text/plain', 'text/structured', 'text/html', 'application/msword'), widget=atapi.RichWidget( label=_(u'Poi_label_helpText', default=u"Help text"), description=_( u'Poi_help_helpText', default=(u"Enter any introductory help text you'd like to " u"display on the tracker front page.")), ), default_output_type='text/html', searchable=True), DataGridField( name='availableAreas', default=({ 'id': 'ui', 'title': 'User interface', 'description': 'User interface issues' }, { 'id': 'functionality', 'title': 'Functionality', 'description': 'Issues with the basic functionality'
from raptus.article.core.interfaces import IArticle from raptus.article.core.config import PROJECTNAME from raptus.article.core import RaptusArticleMessageFactory as _ ArticleSchema = folder.ATFolderSchema.copy() + atapi.Schema(( atapi.TextField( 'text', primary=True, required=False, searchable=True, storage=atapi.AnnotationStorage(), validators=('isTidyHtmlWithCleanup', ), default_output_type='text/x-html-safe', widget=atapi.RichWidget( description='', label=_at(u'label_body_text', default=u'Body Text'), rows=25, allow_file_upload=zconf.ATDocument.allow_document_upload), ), atapi.BooleanField( 'hideTitle', required=False, languageIndependent=True, default=False, storage=atapi.AnnotationStorage(), schemata='settings', accessor='HideTitle', widget=atapi.BooleanWidget( description='', label=_(u'label_hide_title', default=u'Hide title'), visible={
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. CarouselBannerSchema['title'].storage = atapi.AnnotationStorage() CarouselBannerSchema['description'].storage = atapi.AnnotationStorage() CarouselBannerSchema['description'].widget.visible = { 'view': 'hidden', 'edit': 'hidden' } CarouselBannerSchema['remoteUrl'].widget.label = _('Link URL') CarouselBannerSchema['remoteUrl'].required = False