label="Nome", description="Informe o nome da pessoa", ), required=True, ), atapi.StringField( name='credito', widget=atapi.StringWidget(label="Crédito", ), ), atapi.StringField( name='local', widget=atapi.StringWidget(label="Local", ), ), atapi.ImageField( name='foto', widget=atapi.ImageWidget(label='Foto', ), required=True, ), atapi.DateTimeField( name='entrega', default_method='getDataMinima', widget=atapi.CalendarWidget( label="Entrega", description="Data e hora limite para entrega", ), required=True, validators=('isValidDate', ), ), atapi.LinesField( name='infografista', widget=atapi.InAndOutWidget(
default=u"Enter the details description about this buzz."), i18n_domain='ploneservicescenter', ), allowable_content_types=('text/html', ), default_content_type='text/html', default_output_type='text/html', required=0, searchable=1, ), atapi.ImageField( 'logo', widget=atapi.ImageWidget( label=_(u"label_general_logo", default=u"Logo"), description=_( u"help_buzz_logo", default= u"Add a logo for the case study (normally the customer logo). Max 150x75 pixels (will be resized if bigger)." ), i18n_domain='ploneservicescenter', ), sizes={ 'large': (768, 768), 'preview': (400, 400), 'view': (250, 250), 'mini': (200, 200), 'thumb': (128, 128), 'tile': (64, 64), 'icon': (32, 32), 'listing': (16, 16), }, ),
from Products.Archetypes import atapi from Products.ATContentTypes.content import folder from Products.ATContentTypes.content import schemata from isaw.facultycv.interfaces import Iprofile from isaw.facultycv.config import PROJECTNAME profileSchema = folder.ATFolderSchema.copy() + atapi.Schema(( atapi.ImageField( name='Image', sizes=None, widget=atapi.ImageWidget( label=u'Profile Image', label_msgid='isaw.facultycv_label_ProfileImage', il8n_domain='isaw.facultycv', ), required=False, searchable=True, accessor='profileImage', ), atapi.ReferenceField( name = 'ProfileRef', widget = atapi.ReferenceWidget( label = u'Profile reference', ), relationship = 'owned_profile', multiValued=False,
from bika.lims import bikaMessageFactory as _ from bika.lims import deprecated schema = Person.schema.copy() + atapi.Schema(( atapi.LinesField('PublicationPreference', vocabulary_factory= 'bika.lims.vocabularies.CustomPubPrefVocabularyFactory', default='email', schemata='Publication preference', widget=atapi.MultiSelectionWidget( label=_("Publication preference"), )), atapi.ImageField( 'Signature', widget=atapi.ImageWidget( label=_("Signature"), description=_( "Upload a scanned signature to be used on printed analysis " "results reports. Ideal size is 250 pixels wide by 150 high"), )), atapi.ReferenceField( 'Departments', required=0, vocabulary_display_path_bound=sys.maxint, allowed_types=('Department', ), relationship='LabContactDepartment', vocabulary='_departmentsVoc', referenceClass=HoldingReference, multiValued=1, widget=atapi.ReferenceWidget( checkbox_bound=0, label=_("Departments"), description=_("The laboratory departments"),
u"EasyNewsletter_help_unsubscribe_string", default=u'This will replace the placeholder {{UNSUBSCRIBE}}.'), i18n_domain='EasyNewsletter', ), ), ImageField( 'image', schemata='personalization', max_size=(600, 600), widget=atapi.ImageWidget( display_threshold=512000, label=_( u"ENL_image_label", default=u"Banner image"), description=_( u"ENL_image_desc", default=u"Banner image, you can include in the templates by" + u"\n adding the {{banner}} placeholder into it." + u" By default it should be 600x200 pixel." ), ), ), ImageField( 'logo', schemata='personalization', max_size=(768, 768), widget=atapi.ImageWidget( display_threshold=512000, label=_( u"ENL_logo_label",
from Products.Archetypes import atapi from Products.ATContentTypes.content import base from Products.ATContentTypes.content import schemata from Products.ATContentTypes.content import document # -*- Message Factory Imported Here -*- from Products.DssPageTypes.interfaces import IDssTwoCollumnPage from Products.DssPageTypes.config import PROJECTNAME from Products.ATExtensions.ateapi import * DssTwoCollumnPageSchema = document.ATDocumentSchema.copy() + atapi.Schema(( atapi.ImageField( name="medTopImage", widget=atapi.ImageWidget( label=u"Top Image", description=u"this is a large top image", ), ), atapi.StringField( name="imageCaption", widget=atapi.StringWidget( label=u"Image Caption", description=u"Image Caption Here", ), ), atapi.StringField( name="insettitle", widget=atapi.StringWidget(label=u"Small Collumn Title", description=u"This text will be blue"), ), atapi.TextField(
size=30)), atapi.ImageField( 'image', required=False, storage=AnnotationStorage(migrate=True), languageIndependent=True, max_size=zconf.ATNewsItem.max_image_dimension, schemata="Advanced", sizes=None, validators=(('isNonEmptyFile', V_REQUIRED), ('checkNewsImageMaxSize', V_REQUIRED)), widget=atapi.ImageWidget(description=_( u'help_smartlink_image', default= u"Will be shown views that render content's images and in the link view itself" ), label=_(u'label_smartlink_image', default=u'Image'), i18n_domain='redturtle.smartlink', show_content_type=False)), atapi.StringField('imageCaption', required=False, searchable=True, schemata="Advanced", widget=atapi.StringWidget( description='', label=_(u'label_image_caption', default=u'Image Caption'), i18n_domain='redturtle.smartlink', size=40)), atapi.ImageField(
required = False, enforceVocabulary = True, vocabulary_factory = "istsida.vocabularies.points", widget = atapi.InAndOutWidget( label="Point focal", size = 5) ), atapi.ImageField('logo', required = False, original_size = (800,600), sizes = { 'preview' : (400,400), 'mini' : (200, 200), 'tile' : (64,64), }, widget = atapi.ImageWidget(label="Logo",) ), atapi.TextField('address', searchable = True, default_output_type = 'text/x-html-safe', widget = atapi.RichWidget( label = "Coordonnées", description = "Adresses, téléphones, e-mails,...", rows = 5) ), atapi.TextField('contact', searchable = True, default_output_type = 'text/x-html-safe', widget = atapi.RichWidget( label = "Contact(s)", description = "Noms, téléphones et emails de la ou des personnes de contact.",
validators=('isURL', ), widget=atapi.StringWidget( label=u'Support mailing list or forum URL', description= u'URL of mailing list information page/archives or support forum, if the project has one.', i18n_domain="plonesoftwarecenter", ), ), atapi.ImageField( 'logo', required=0, original_size=(150, 75), sizes=config.IMAGE_SIZES, widget=atapi.ImageWidget( label=u'Logo', description= u"Add a logo for the project (or organization/company) by clicking the 'Browse' button. Max 150x75 pixels (will be resized if bigger).", i18n_domain="collective.TemplateUploadCenter", ), ), atapi.StringField( 'logoURL', searchable=1, required=0, validators=('isURL', ), widget=atapi.StringWidget( label=u'Logo link', description=u'The URL the logo should link to, if applicable.', i18n_domain="collective.TemplateUploadCenter", ), ), atapi.ImageField(
widget=atapi.StringWidget( label=_(u"Email address"), description=_(u"Contact email address."), ), required=False, languageIndependent=True), atapi.StringField('phone', widget=atapi.StringWidget( label=_(u"Phone number"), description=_(u"Contact phone number"), ), required=False, languageIndependent=True), ImageField('photo', widget=atapi.ImageWidget( label=_(u"Photo"), description=_(u"A portrait of the person."), ), validators=('isNonEmptyFile'), languageIndependent=True), atapi.StringField('department', widget=atapi.StringWidget(label=_(u"Department"), description=''), required=False), )) PersonSchema["title"].widget.label = _(u"Fullname") PersonSchema["title"].languageIndependent = True schemata.finalizeATCTSchema(PersonSchema, moveDiscussion=False)
class BlogExtender(object): adapts(IBlog) implements(ISchemaExtender) fields = [ MyImageField("image", required=True, languageIndependent=True, max_size=(225, 55), sizes={ 'mini': (200, 200), 'thumb': (128, 128), 'tile': (64, 64), 'icon': (32, 32), 'listing': (16, 16), }, widget=atapi.ImageWidget( label=_(u'Small image'), description=_(u'Upload your small image here. '), show_content_type=False)), MySecondImageField( "header_image", required=False, languageIndependent=True, max_size=(870, 150), sizes={ 'large': (768, 768), 'preview': (400, 400), 'mini': (200, 200), 'thumb': (128, 128), 'tile': (64, 64), 'icon': (32, 32), 'listing': (16, 16), }, widget=atapi.ImageWidget( label=_(u'Header image'), description=_(u'Upload the image for the header of your blog'), show_content_type=False)), MyLinesField( "email", required=True, widget=atapi.LinesWidget( label=_(u'E-mail'), description= _('E-mail addresses where you will receive the replies of your posts. One per line.' ))), MyStringField2( "feedburner_posts", required=False, widget=atapi.StringWidget( label=_(u"FeedBurner address for your blog posts"), description= _("If you are using FeedBurner to manage your RSS feeds, enter here the address of your posts' feed" ))), MyStringField3( "feedburner_comments", required=False, widget=atapi.StringWidget( label=_(u"FeedBurner address for your blog comments"), description= _("If you are using FeedBurner to manage your RSS feeds, enter here the address of your comments' feed" ))), ] def __init__(self, context): self.context = context def getFields(self): return self.fields
from Products.Archetypes import atapi from Products.ATContentTypes.content import base from Products.ATContentTypes.content import schemata from Products.ATContentTypes.content import event # -*- Message Factory Imported Here -*- from Products.IssEvent.interfaces import IIssEvent from Products.IssEvent.config import PROJECTNAME from Products.ATExtensions.ateapi import * IssEventSchema = event.ATEventSchema.copy() + atapi.Schema(( atapi.ImageField( "eventimage", widget=atapi.ImageWidget( label=u"Event Image", description=u"Image to display with the Event", ), ), atapi.StringField( "eventimagetitle", widget=atapi.StringWidget( label=u"Image Title", description=u"Title of image to display with the Event", ), ), atapi.StringField( name='eventroom', vocabulary=["220", "1400", "3711"], widget=ComboWidget(label="Room Number", ), ), atapi.StringField(
atapi.StringField( 'special_interest', required=0, default='', searchable=1, vocabulary=SPECIAL_INTERESTS_LIST, widget=atapi.SelectionWidget( label=u"Special Interests", description=u"Area of special interest", type='radio', ), ), atapi.ImageField( 'member_image', widget=atapi.ImageWidget( label=u"Member Image", description=u"Photo of the member", ), sizes={ 'large': (768, 768), 'preview': (400, 400), 'mini': (200, 200), 'thumb': (128, 128), 'tile': (64, 64), 'icon': (32, 32), 'listing': (16, 16), }, ), atapi.TextField('body_text', required=0, searchable=True, default_content_type="text/html",
u"or folderish content-types."))), atapi.LinesField( 'types', schemata='default', vocabulary_factory='plone.app.vocabularies.ReallyUserFriendlyTypes', multiValued=1, widget=atapi.MultiSelectionWidget( format='checkbox', label=_(u'Portal types'), description=_( u"Use this PDF Theme for the following Portal-Types."))), ImageField("image", schemata="default", sizes=None, widget=atapi.ImageWidget( label=_(u"Preview"), description=_(u"Upload a preview image for this theme"))), )) THEME_SCHEMA = ATFolder.schema.copy() + EditSchema.copy() def finalize_schema(schema=THEME_SCHEMA): """ Update schema """ for field in schema.fields(): field.write_permission = 'Manage portal' if field.schemata != 'default': field.required = False field.mode = 'r'
class SchemaExtender(object): """ Extend a file to get more publication related fields """ implements(IOrderableSchemaExtender) _fields = [ # Override relatedItems make it langauge independent and override # the accessor to return langage dependent references. ExtendedReferenceField( 'relatedItems', relationship='relatesTo', multiValued=True, isMetadata=True, languageIndependent=True, accessor='getRelatedItems', mutator='setRelatedItems', index='KeywordIndex', write_permission=permissions.ModifyPortalContent, widget=ReferenceBrowserWidget(allow_search=True, allow_browse=True, show_indexes=False, force_close_on_insert=True, label=_(u"Related Items"), description='', visible={ 'edit': 'visible', 'view': 'invisible' }), ), ExtendedImageField( 'cover_image', schemata='publication', sizes={'cover': (70, 100)}, languageIndependent=True, accessor='getCover_image', mutator='setCover_image', widget=atapi.ImageWidget( label=_(u'label_cover_image', default=u'Cover Image'), description=_( u'description_cover_image', default= u'Upload a cover image. Leave empty to have the system autogenerate one for you.' ), ), ), ExtendedStringField( 'author', schemata='publication', languageIndependent=True, accessor='getAuthor', mutator='setAuthor', widget=atapi.StringWidget( label=_(u'label_author', default=u'Author'), description=_( u'description_author', default= u'Fill in the Name of the Author of this Publication.'), ), ), ExtendedStringField( 'isbn', schemata='publication', languageIndependent=False, widget=atapi.StringWidget( label=_(u'label_isbn', default=u'ISBN'), description=_( u'description_isbn', default=u'Fill in the ISBN Number of this Publication.'), ), ), ExtendedStringField( 'order_id', schemata='publication', languageIndependent=False, widget=atapi.StringWidget( label=_(u'label_order_id', default=u'Order ID'), description=_( u'description_order_id', default=u'Fill in the Order ID of this Publication.'), ), ), ExtendedBooleanField( 'for_sale', schemata='publication', languageIndependent=True, accessor='getFor_sale', mutator='setFor_sale', widget=atapi.BooleanWidget( label=_(u'label_for_sale', default=u'For sale?'), description=_(u'description_for_sale', default=u'Is this Publication for sale?'), ), ), ExtendedLinesField( 'chapters', schemata='publication', languageIndependent=True, accessor='getChapters', mutator='setChapters', widget=atapi.LinesWidget( label=_(u'label_chapters', default=u'Chapters'), description=_( u'description_chapters', default= u'Chapters of this Publication. Specify the Link targets defined in your pdf file, one per line.' ), ), ), ExtendedFileField( 'metadata_upload', schemata='publication', languageIndependent=True, accessor='getMetadata_upload', mutator='setMetadata_upload', widget=atapi.FileWidget( label=_(u'label_metadata_upload', default=u'Metadata INI upload'), description=_(u'description_metadata_upload', default=u'Upload Metadata in INI style format.'), ), ), ExtendedStringField( 'owner_password', schemata='publication', languageIndependent=False, widget=atapi.StringWidget( label=_(u'label_owner_password', default=u'Owner Password'), description=_( u'description_owner_password', default= u'If this publication is protected, speciy the pdf owner password if you want to parse the file.' ), ), ), ExtendedStringField( 'user_password', schemata='publication', languageIndependent=False, widget=atapi.StringWidget( label=_(u'label_user_password', default=u'User Password'), description=_( u'description_user_password', default= u'If this publication is protected, speciy the pdf user password if you want to parse the file.' ), ), ), ] def __init__(self, context): """ init """ self.context = context klass = context.__class__ if HAVE_LINGUAPLONE and not getattr( klass, LANGUAGE_INDEPENDENT_INITIALIZED, False): fields = [ field for field in self._fields if field.languageIndependent ] generateMethods(klass, fields) setattr(klass, LANGUAGE_INDEPENDENT_INITIALIZED, True) def getFields(self): """ get fields """ return self._fields def getOrder(self, original): """ new order """ publication = original.get('publication', []) publication.insert(0, 'author') publication.insert(1, 'isbn') publication.insert(2, 'order_id') publication.insert(3, 'for_sale') publication.insert(4, 'chapters') publication.insert(5, 'cover_image') publication.insert(6, 'metadata_upload') publication.insert(7, 'owner_password') publication.insert(8, 'user_password') original['publication'] = publication return original
widget=ReferenceBrowserWidget( label=_(u'Link Interno'), description= _(u'Caso selecionado o link sera apontado para o local de sua escolha.' ), allow_search=True, allow_browse=True, ), #allowed_types=('Folder',), relationship='link_interno', multiValued=False, ), ImageField( name='imagem', widget=atapi.ImageWidget( label=_(u'Imagem do Banner'), description=_(u'Escolha da imagem do banner.'), ), required=False, ), atapi.BooleanField( name='linkTarget', default=False, widget=atapi.BooleanWidget( label=_(u'Abrir link em nova janela'), description=_( u'Caso selecionado o link sera exibido em uma nova janela'), ), required=False, ), ))
_(u'Begin typing a name'), }, ), write_permission=ASSIGN_SPECIALTIES_TO_PEOPLE, allowed_types=('FSDPerson', ), multiValued=True, relationship= 'SpecialtyInformation' # weird relationship name is ArchGenXML's fault ), atapi.ImageField( name='overviewImage', schemata='Overview', widget=atapi.ImageWidget( label=_( u"FacultyStaffDirectory_label_overview_image", default=u"Overview image (used for specialty overview view)" ), i18n_domain='FacultyStaffDirectory', default_content_type='image/gif', ), storage=atapi.AttributeStorage(), original_size=(200, 200), sizes={'normal': (200, 250)}, default_output_type='image/jpeg', allowable_content_types=('image/gif', 'image/jpeg', 'image/png'), ), atapi.TextField( name='overviewText', schemata='Overview', allowable_content_types=config.ALLOWABLE_CONTENT_TYPES, widget=TinyMCEWidget( label=_(
allow_file_upload=zconf.ATDocument.allow_document_upload, ), ), atapi.ImageField('image', sizes={ 'large': (768, 768), 'preview': (400, 400), 'twoeightfive': (285, 285), 'mini': (200, 200), 'thumb': (128, 128), 'tiny': (84, 84), 'tile': (64, 64), }, widget=atapi.ImageWidget( label="Image", description="", show_content_type=False, )), atapi.ImageField('imageHome', sizes={ 'twosixtyeight': (268, 268), 'mini': (200, 200), 'thumb': (128, 128), 'tile': (64, 64), }, widget=atapi.ImageWidget( label="Homepage image (16:9)", description="Dimensions: 268px x 150px", show_content_type=False, )), atapi.LinesField(
from Products.ATContentTypes.lib.historyaware import HistoryAwareMixin DssCourseSchema = document.ATDocumentSchema.copy() + atapi.Schema(( atapi.StringField( name="imageHelp", widget=atapi.LabelWidget( label=u"Lead Image Help", description= u"This is a small image that will only show on course listings. It doesn't show on the actual course page", ), ), atapi.ImageField( name="inlineTopImage", widget=atapi.ImageWidget( label=u"Top Image", description= u"this is a medium image. Optimum resolution is 750x422", ), ), atapi.StringField( name="imageCaption", widget=atapi.StringWidget( label=u"Image Caption", description=u"Image Caption Here", ), ), atapi.TextField( name="faculty", widget=atapi.RichWidget( label=u"Faculty Names", description=u"",
atapi.StringField( 'autor', storage=atapi.AnnotationStorage(), widget=atapi.StringWidget( label=_(u"Autor"), ), required=True, ), atapi.ImageField( 'foto', storage=atapi.AnnotationStorage(), widget=atapi.ImageWidget( label=_(u"Foto"), ), required=True, validators=('isNonEmptyFile'), ), )) # Set storage on fields copied from ATContentTypeSchema, making sure # they work well with the python bridge properties. ColunaSchema['title'].storage = atapi.AnnotationStorage() ColunaSchema['description'].storage = atapi.AnnotationStorage() ColunaSchema['description'].widget.visible = {"edit": "invisible", "view": "invisible"} ColunaSchema['location'].widget.visible = {"edit": "invisible", "view": "invisible"}
widget=atapi.BooleanWidget( description= 'This will force this profile to the top of the staff directories.', label=_(u'Is this person the Director?', default=u'Is this person the Director?'), )), atapi.ImageField( 'imageReference', required=False, searchable=False, default="", validators=(), allowable_content_types=('image/gif', 'image/jpeg', 'image/png'), widget=atapi.ImageWidget( description='Allowed image types: gif|jpeg|png', label=_(u'Image of Staff Member', default=u'Image of Staff Member'), )), )) LibraryStaffSchema['title'].storage = atapi.AnnotationStorage() LibraryStaffSchema['description'].storage = atapi.AnnotationStorage() LibraryStaffSchema['position'].storage = atapi.AnnotationStorage() LibraryStaffSchema['department'].storage = atapi.AnnotationStorage() LibraryStaffSchema['email'].storage = atapi.AnnotationStorage() LibraryStaffSchema['phoneOffice'].storage = atapi.AnnotationStorage() LibraryStaffSchema['phoneDesk'].storage = atapi.AnnotationStorage() LibraryStaffSchema['fax'].storage = atapi.AnnotationStorage() LibraryStaffSchema['officeRoom'].storage = atapi.AnnotationStorage() LibraryStaffSchema['education'].storage = atapi.AnnotationStorage() LibraryStaffSchema['background'].storage = atapi.AnnotationStorage()
languageIndependent=True, storage=atapi.AnnotationStorage(), swallowResizeExceptions=True, max_size='no', sizes={ 'large': (600, 600), 'preview': (400, 400), 'mini': (200, 200), 'thumb': (128, 128), }, validators=(('isNonEmptyFile', V_REQUIRED), ('checkImageMaxSize', V_REQUIRED)), widget=atapi.ImageWidget( label=_(u"Image"), description= _(u"An image for this question (The image size must not be greater than 400x400 px)" ), show_content_type=False, ), ), atapi.IntegerField( "maxTimeResponseQuestion", required=False, default=70, storage=atapi.AnnotationStorage(), widget=atapi.IntegerWidget( label=_(u'Time of response (Seconds)'), description= _(u'Maximum time, in seconds, the user has in order to answer the question' ), ),
from observatorio.conteudo.interfaces import IPublicacao PublicacaoSchema = ATContentTypeSchema.copy() + atapi.Schema(( BlobField( name='arquivo', widget=atapi.FileWidget( label=_(u'Arquivo'), description=_(u'Arquivo da publicacao.'), ), required=True, primary=True, ), ImageField( name='image', widget=atapi.ImageWidget( label=_(u'Imagem Capa'), description=_(u'Imagem da capa da publicacao.'), ), required=False, ), )) schemata.finalizeATCTSchema(PublicacaoSchema) class Publicacao(ATCTFileContent): """ """ implements(IPublicacao) meta_type = "Publicacao"
'dimension_unit': u'g', 'dimensions': [_(u"Weight (g)")] }, 'weight_kg_kg': { 'label': _(u'label_weight', default=u"Weight"), 'dimension_unit': u'kg', 'dimensions': [_(u"Weight (kg)")] } } ShopItemSchema = ATContentTypeSchema.copy() + atapi.Schema(( atapi.ImageField( 'image', required=False, languageIndependent=True, widget=atapi.ImageWidget(label=_(u"label_image", default=u"Image"), ), storage=AnnotationStorage(), sizes={ 'large': (768, 768), 'mini': (200, 200), 'thumb': (128, 128), }, ), atapi.TextField( 'text', required=False, searchable=True, primary=True, storage=atapi.AnnotationStorage(migrate=True), allowable_content_types=('text/html', ), default_content_type='text/html',
# atapi.StringField( # name='officePhone', # widget=atapi.StringWidget( # label=_(u"FacultyStaffDirectory_label_officePhone", default=u"Office Phone"), # description=_(u"FacultyStaffDirectory_description_officePhone", default=u""), # i18n_domain='FacultyStaffDirectory', # ), # schemata="Contact Information", # searchable=True, # ), atapi.ImageField( name='image', schemata="Basic Information", widget=atapi.ImageWidget( label=_(u"FacultyStaffDirectory_label_image", default=u"Image"), i18n_domain='FacultyStaffDirectory', default_content_type='image/gif', ), storage=atapi.AttributeStorage(), original_size=(400, 500), sizes={ 'thumb': (100, 125), 'normal': (200, 250) }, default_output_type='image/jpeg', allowable_content_types=('image/gif', 'image/jpeg', 'image/png'), ), atapi.ComputedField(name='title', widget=atapi.ComputedWidget( label=_(u"FacultyStaffDirectory_label_fullName", default=u"Full Name"),
allow_file_upload=False, ), ), ImageField( name='image', sizes={ 'large': (768, 768), 'preview': (400, 400), 'mini': (200, 200), 'thumb': (128, 128), 'tile': (64, 64), 'icon': (32, 32), 'listing': (16, 16), }, required=False, widget=atapi.ImageWidget(label=_(u'label_image', u'Imagem'), ), ), )) schema['description'].widget.visible['edit'] = 'invisible' schemata.finalizeATCTSchema(schema) class Destaque(ATCTContent, HistoryAwareMixin): """ """ security = ClassSecurityInfo() implements(IDestaque) meta_type = 'Destaque' portal_type = 'Destaque'
label=u'Event Sponsor Url', label_msgid='ISAW_Event_Sponsor_Url', il8n_domain='ISAW_Event', maxlength=255, size=50, ), required=False, searchable=True), atapi.ImageField( schemata='sponsor', name='event_Sponsor_Logo', widget=atapi.ImageWidget( label=u'Event Sponsor Logo', label_msgid='ISAW_Event_Sponsor_Logo', il8n_domain='ISAW_Event', ), required=False, searchable=True), )) # Set storage on fields copied from ATFolderSchema, making sure # they work well with the python bridge properties. SponsoredSchema['title'].storage = atapi.AnnotationStorage() SponsoredSchema['description'].storage = atapi.AnnotationStorage()
searchable=0, required=True, accessor="Description", widget=atapi.StringWidget(label="Description", label_msgid="label_kvideofile_desc", description="Enter a description", description_msgid="desc_kvideofile_title", i18n_domain="kaltura_video"), ), atapi.ImageField('thumbnail', searchable=0, required=False, mode='r', widget=atapi.ImageWidget(label="Thumbnail", description="Thumbnail of video", visible = {'edit': 'invisible', 'view': 'visible'}, i18n_domain="kaltura_video") ), atapi.StringField('playbackUrl', searchable=0, accessor="getPlaybackUrl", mode="r", widget=atapi.ComputedWidget(label="Url", description="Url set by Kaltura after upload (read only)", visible = { 'edit' :'visible', 'view' : 'visible' }, i18n_domain="kaltura_video") ), ), marshall=RFC822Marshaller()
'text/plain', 'text/html', 'application/msword'), widget=atapi.RichWidget(), ), atapi.IntegerField("number", index="FieldIndex", default=42, validators=('isInt',), ), atapi.ImageField('image', default_output_type='image/jpeg', allowable_content_types=('image/*',), widget=atapi.ImageWidget()), atapi.ReferenceField('related', relationship='related', multiValued=True, widget=atapi.ReferenceWidget(), keepReferencesOnCopy=True), atapi.ReferenceField('rel2', relationship='rel2', multiValued=True, widget=atapi.ReferenceWidget(), keepReferencesOnCopy=True), ), marshall=PrimaryFieldMarshaller()) + TemplateMixin.schema
from Products.LinguaPlone.I18NBaseObject import AlreadyTranslated from Products.LinguaPlone.I18NOrderedBaseFolder import I18NOrderedBaseFolder from Products.LinguaPlone import permissions from slc.seminarportal.interfaces import ISeminar from slc.seminarportal.config import PROJECTNAME, ALLOWABLE_TEXT_TYPES from slc.seminarportal import seminarportalMessageFactory as _ SeminarSchema = atapi.BaseFolderSchema.copy() + \ ATEventSchema.copy() + atapi.Schema(( atapi.ImageField( name='logo', widget=atapi.ImageWidget( label=_(u"label_seminar_logo", default=u"Graphic or Logo for the event"), ), languageIndependent=True, original_size=(200, 200), sizes={'thumb': (100, 125), 'normal': (200, 200)}, default_output_type='image/jpeg', allowable_content_types=('image/gif', 'image/jpeg', 'image/png'), ), atapi.TextField( name='summary', allowable_content_types=ALLOWABLE_TEXT_TYPES, widget=atapi.RichWidget( label=_(u"label_seminar_summary", default=u"General Description/Summary of the event"), macro='seminar_textarea', ),