本文整理汇总了Python中DublinCore.DefaultDublinCoreImpl类的典型用法代码示例。如果您正苦于以下问题:Python DefaultDublinCoreImpl类的具体用法?Python DefaultDublinCoreImpl怎么用?Python DefaultDublinCoreImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了DefaultDublinCoreImpl类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__( self
, id
, title=''
, file=''
, content_type=''
, precondition=''
, subject=()
, description=''
, contributors=()
, effective_date=None
, expiration_date=None
, format=None
, language='en-US'
, rights=''
):
OFS.Image.File.__init__( self, id, title, file
, content_type, precondition )
self._setId(id)
delattr(self, '__name__')
# If no file format has been passed in, rely on what OFS.Image.File
# detected.
if format is None:
format = self.content_type
DefaultDublinCoreImpl.__init__( self, title, subject, description
, contributors, effective_date, expiration_date
, format, language, rights )
示例2: __init__
def __init__(self, id, title='', description='', text_format='', text=''):
DefaultDublinCoreImpl.__init__(self)
self.id = id
self.title = title
self.description = description
self._edit( text=text, text_format=text_format )
self.setFormat( text_format )
示例3: __init__
def __init__( self
, id
, title=''
, file=''
, content_type=''
, precondition=''
, subject=()
, description=''
, contributors=()
, effective_date=None
, expiration_date=None
, format=None
, language='en-US'
, rights=''
):
OFS.Image.File.__init__( self, id, title, file
, content_type, precondition )
# If no file format has been passed in, rely on what OFS.Image.File
# detected. Unlike Images, which have code to try and pick the content
# type out of the binary data, File objects only provide the correct
# type if a "hint" in the form of a filename extension is given.
if format is None:
format = self.content_type
DefaultDublinCoreImpl.__init__( self, title, subject, description
, contributors, effective_date, expiration_date
, format, language, rights )
示例4: __init__
def __init__(self, id, title='', description='', text_format='', text=''):
DefaultDublinCoreImpl.__init__(self)
self.id=id
self.title=title
self.description=description
self.text=text
self.text_format=text_format
self._parse()
示例5: __init__
def __init__( self
, id
, title=''
, remote_url=''
, description=''
):
DefaultDublinCoreImpl.__init__(self)
self.id=id
self.title=title
self.remote_url=remote_url
self.description=description
示例6: __init__
def __init__( self
, id
, title=''
, remote_url=''
, description=''
):
DefaultDublinCoreImpl.__init__(self)
self.id=id
self.title=title
self.description=description
self._edit(remote_url)
self.format=self.URL_FORMAT
示例7: __init__
def __init__( self
, id
, title=''
, file=''
, content_type=''
, precondition=''
, subject=()
, description=''
, contributors=()
, effective_date=None
, expiration_date=None
, format='text/html'
, language='en-US'
, rights=''
):
OFS.Image.File.__init__( self, id, title, file
, content_type, precondition )
DefaultDublinCoreImpl.__init__( self, title, subject, description
, contributors, effective_date, expiration_date
, format, language, rights )
示例8: getMetadataHeaders
def getMetadataHeaders(self):
"""Return RFC-822-style header spec."""
hdrlist = DefaultDublinCoreImpl.getMetadataHeaders(self)
hdrlist.append( ('SafetyBelt', self._safety_belt) )
return hdrlist
示例9: __init__
def __init__( self, id, title='' ):
PortalObjectBase.__init__( self, id, title )
DefaultDublinCoreImpl.__init__( self )