# -*- Message Factory Imported Here -*- from kk.badan_types.interfaces import IProject from kk.badan_types.config import PROJECTNAME from kk.badan_types import badan_typesMessageFactory as _ ProjectSchema = folder.ATFolderSchema.copy() + atapi.Schema(( atapi.DateTimeField('ProjectDate', required=True, searchable=False, default_method=DateTime, languageIndependent=True, widget=atapi.CalendarWidget( description='', label=_(u'label_project_date', default=u'Project Date') )), atapi.StringField("city", required = False, widget = atapi.StringWidget(label = "Ort")), atapi.ImageField('image', required=False, storage=atapi.AnnotationStorage(migrate=True), languageIndependent=True, max_size=zconf.ATNewsItem.max_image_dimension, sizes={'large': (768, 768), 'preview': (400, 400), 'mini': (200, 200), 'thumb': (128, 128), 'tile': (64, 64), 'icon': (32, 32),
from kk.badan_types.interfaces import IEmbedmedia from kk.badan_types.config import PROJECTNAME from kk.badan_types import badan_typesMessageFactory as _ EmbedmediaSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( atapi.TextField('code', required=True, searchable=False, primary=True, storage=atapi.AnnotationStorage(migrate=True), default_output_type='text/x-html-safe', widget=atapi.TextAreaWidget( description='', label=_(u'label_embed_code', u'Embed Code'), rows=5)), atapi.StringField('MediaType', required=True, searchable=False, vocabulary = (('0', 'Video'), ('1', 'Audio')), storage=atapi.AnnotationStorage(migrate=True), widget=atapi.SelectionWidget( description='', label=_(u'label_media_type', u'Media Type'), rows=5)), )) # Set storage on fields copied from ATContentTypeSchema, making sure # they work well with the python bridge properties.