当前位置: 首页>>代码示例>>Python>>正文


Python DublinCore.DefaultDublinCoreImpl类代码示例

本文整理汇总了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 )
开发者ID:goschtl,项目名称:zope,代码行数:28,代码来源:Image.py

示例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 )
开发者ID:goschtl,项目名称:zope,代码行数:7,代码来源:Document.py

示例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 )
开发者ID:goschtl,项目名称:zope,代码行数:28,代码来源:File.py

示例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()
开发者ID:goschtl,项目名称:zope,代码行数:8,代码来源:Document.py

示例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
开发者ID:goschtl,项目名称:zope,代码行数:11,代码来源:Link.py

示例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
开发者ID:goschtl,项目名称:zope,代码行数:12,代码来源:Link.py

示例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 )
开发者ID:goschtl,项目名称:zope,代码行数:20,代码来源:Image.py

示例8: getMetadataHeaders

 def getMetadataHeaders(self):
     """Return RFC-822-style header spec."""
     hdrlist = DefaultDublinCoreImpl.getMetadataHeaders(self)
     hdrlist.append( ('SafetyBelt', self._safety_belt) )
     return hdrlist
开发者ID:goschtl,项目名称:zope,代码行数:5,代码来源:Document.py

示例9: __init__

 def __init__( self, id, title='' ):
     PortalObjectBase.__init__( self, id, title )
     DefaultDublinCoreImpl.__init__( self )
开发者ID:goschtl,项目名称:zope,代码行数:3,代码来源:Portal.py


注:本文中的DublinCore.DefaultDublinCoreImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。