示例#1
0
 def metaTypeId(self):
     '''
     Provides the meta type id.
     '''
     if self._metaTypeId is None:
         self._metaTypeId = metaTypeFor(self.session(), META_TYPE_KEY).Id
     return self._metaTypeId
示例#2
0
 def deploy(self):
     '''
     Deploy the meta data and all handlers.
     '''
     self._metaType = metaTypeFor(self.session(), META_TYPE_KEY)
     self._thumbnail = thumbnailFor(self.session(), '%(size)s/other.jpg')
     referenceLast = self.thumbnailReferencer.timestampThumbnail(self._thumbnail.id)
     imagePath = join(pythonPath(), 'resources', 'other.jpg')
     if referenceLast is None or referenceLast < timestampURI(imagePath):
         self.thumbnailReferencer.processThumbnail(openURI(imagePath), self._thumbnail.id)
示例#3
0
 def deploy(self):
     '''
     @see: IMetaDataHandler.deploy
     '''
     
     self._defaultThumbnailFormat = thumbnailFormatFor(self.session(), self.default_format_thumbnail)
     self.thumbnailManager.putThumbnail(self._defaultThumbnailFormat.id, abspath(join(pythonPath(), 'resources', 'video.jpg')))
     
     self._thumbnailFormat = thumbnailFormatFor(self.session(), self.format_thumbnail)
     self._metaTypeId = metaTypeFor(self.session(), META_TYPE_KEY).Id
示例#4
0
    def deploy(self):
        '''
        Deploy the meta data and all handlers.
        '''
        self._thumbnailFormat = thumbnailFormatFor(self.session(), self.format_thumbnail)
        self.thumbnailManager.putThumbnail(self._thumbnailFormat.id, abspath(join(pythonPath(), 'resources', 'other.jpg')))
        self._metaType = metaTypeFor(self.session(), META_TYPE_KEY)

        for handler in self.metaDataHandlers:
            assert isinstance(handler, IMetaDataHandler), 'Invalid meta data handler %s' % handler
            handler.deploy()
示例#5
0
    def deploy(self):
        '''
        @see: IMetaDataHandler.deploy
        '''

        self._defaultThumbnailFormat = thumbnailFormatFor(
            self.session(), self.default_format_thumbnail)
        self.thumbnailManager.putThumbnail(
            self._defaultThumbnailFormat.id,
            abspath(join(pythonPath(), 'resources', 'video.jpg')))

        self._thumbnailFormat = thumbnailFormatFor(self.session(),
                                                   self.format_thumbnail)
        self._metaTypeId = metaTypeFor(self.session(), META_TYPE_KEY).Id
示例#6
0
    def deploy(self):
        '''
        Deploy the meta data and all handlers.
        '''
        self._thumbnailFormat = thumbnailFormatFor(self.session(),
                                                   self.format_thumbnail)
        self.thumbnailManager.putThumbnail(
            self._thumbnailFormat.id,
            abspath(join(pythonPath(), 'resources', 'other.jpg')))
        self._metaType = metaTypeFor(self.session(), META_TYPE_KEY)

        for handler in self.metaDataHandlers:
            assert isinstance(
                handler,
                IMetaDataHandler), 'Invalid meta data handler %s' % handler
            handler.deploy()
示例#7
0
 def metaTypeId(self):
     '''
     Provides the meta type id.
     '''
     if self._metaTypeId is None: self._metaTypeId = metaTypeFor(self.session(), META_TYPE_KEY).Id
     return self._metaTypeId