from AccessControl import ClassSecurityInfo from Products.CMFCore import permissions from Products.Archetypes import atapi from Products.ATContentTypes.content import schemata from Products.ATContentTypes.content.link import ATLink, ATLinkSchema from Products.ATContentTypes.content.image import ATImageSchema from Products.ATContentTypes.lib.imagetransform import ATCTImageTransform from redturtle.video import videoMessageFactory as _ from redturtle.video.interfaces import IRTRemoteVideo from redturtle.video.config import PROJECTNAME from redturtle.video.content.default import DefaultVideo from redturtle.video.content.video_schema import VIDEO_SCHEMA RTRemoteVideoSchema = ATLinkSchema.copy() + VIDEO_SCHEMA.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- )) # Set storage on fields copied from ATContentTypeSchema, making sure # they work well with the python bridge properties. RTRemoteVideoSchema['title'].storage = atapi.AnnotationStorage() RTRemoteVideoSchema['description'].storage = atapi.AnnotationStorage() imageField = ATImageSchema['image'].copy() imageField.required = False imageField.primary = False imageField.widget.description = _(u'help_video_image',
from Products.Archetypes import atapi from Products.ATContentTypes.content import base from Products.ATContentTypes.content import schemata from Products.ATContentTypes.content.file import ATFileSchema from Products.ATContentTypes.content.image import ATImageSchema from Products.ATContentTypes.lib.imagetransform import ATCTImageTransform from collective.flowplayer.interfaces import IFlowPlayable from redturtle.video import videoMessageFactory as _ from redturtle.video.interfaces import IRTInternalVideo from redturtle.video.config import PROJECTNAME from redturtle.video.content.default import DefaultVideo from redturtle.video.content.video_schema import VIDEO_SCHEMA RTInternalVideoSchema = ATFileSchema.copy() + VIDEO_SCHEMA.copy() # Set storage on fields copied from ATContentTypeSchema, making sure # they work well with the python bridge properties. RTInternalVideoSchema['title'].storage = atapi.AnnotationStorage() RTInternalVideoSchema['title'].required = True RTInternalVideoSchema['description'].storage = atapi.AnnotationStorage() RTInternalVideoSchema['file'].searchable = False #RTInternalVideoSchema['file'].index_method = '_at_accessor' imageField = ATImageSchema['image'].copy() imageField.required = False imageField.primary = False imageField.widget.description = _( u'help_video_image',
from Products.CMFCore import permissions from Products.Archetypes import atapi from Products.ATContentTypes.content import schemata from Products.ATContentTypes.content.link import ATLink, ATLinkSchema from Products.ATContentTypes.content.image import ATImageSchema from Products.ATContentTypes.lib.imagetransform import ATCTImageTransform from redturtle.video import videoMessageFactory as _ from redturtle.video.interfaces import IRTRemoteVideo from redturtle.video.config import PROJECTNAME from redturtle.video.content.default import DefaultVideo from redturtle.video.content.video_schema import VIDEO_SCHEMA RTRemoteVideoSchema = ( ATLinkSchema.copy() + VIDEO_SCHEMA.copy() + atapi.Schema( ( # -*- Your Archetypes field definitions here ... -*- ) ) ) # Set storage on fields copied from ATContentTypeSchema, making sure # they work well with the python bridge properties. RTRemoteVideoSchema["title"].storage = atapi.AnnotationStorage() RTRemoteVideoSchema["description"].storage = atapi.AnnotationStorage() imageField = ATImageSchema["image"].copy() imageField.required = False
from Products.ATContentTypes.content import schemata from Products.ATContentTypes.content.base import ATCTContent from Products.ATContentTypes.content.image import ATImageSchema from Products.ATContentTypes.content.link import ATLink, ATLinkSchema from Products.ATContentTypes.lib.imagetransform import ATCTImageTransform from Products.Archetypes import atapi from Products.CMFCore import permissions from redturtle.video import videoMessageFactory as _ from redturtle.video.config import PROJECTNAME from redturtle.video.content.default import DefaultVideo from redturtle.video.content.video_schema import VIDEO_SCHEMA from redturtle.video.interfaces import IRTRemoteVideo from urllib import quote from zope.interface import implements RTRemoteVideoSchema = ATLinkSchema.copy() + VIDEO_SCHEMA.copy() + atapi.Schema(( # -*- Your Archetypes field definitions here ... -*- )) # Set storage on fields copied from ATContentTypeSchema, making sure # they work well with the python bridge properties. RTRemoteVideoSchema['title'].storage = atapi.AnnotationStorage() RTRemoteVideoSchema['description'].storage = atapi.AnnotationStorage() imageField = ATImageSchema['image'].copy() imageField.required = False imageField.primary = False imageField.widget.description = _(u'help_video_image',
from Products.Archetypes import atapi from Products.ATContentTypes.content import base from Products.ATContentTypes.content import schemata from Products.ATContentTypes.content.file import ATFileSchema from Products.ATContentTypes.content.image import ATImageSchema from Products.ATContentTypes.lib.imagetransform import ATCTImageTransform from collective.flowplayer.interfaces import IFlowPlayable from redturtle.video import videoMessageFactory as _ from redturtle.video.interfaces import IRTInternalVideo from redturtle.video.config import PROJECTNAME from redturtle.video.content.default import DefaultVideo from redturtle.video.content.video_schema import VIDEO_SCHEMA RTInternalVideoSchema = ATFileSchema.copy() + VIDEO_SCHEMA.copy() # Set storage on fields copied from ATContentTypeSchema, making sure # they work well with the python bridge properties. RTInternalVideoSchema['title'].storage = atapi.AnnotationStorage() RTInternalVideoSchema['title'].required = True RTInternalVideoSchema['description'].storage = atapi.AnnotationStorage() RTInternalVideoSchema['file'].searchable = False #RTInternalVideoSchema['file'].index_method = '_at_accessor' imageField = ATImageSchema['image'].copy() imageField.required = False imageField.primary = False imageField.widget.description = _(u'help_video_image', default=u'Can be used to provide splash image when needed')