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


Python DublinCore.DefaultDublinCoreImpl类代码示例

本文整理汇总了Python中Products.CMFDefault.DublinCore.DefaultDublinCoreImpl的典型用法代码示例。如果您正苦于以下问题:Python DefaultDublinCoreImpl类的具体用法?Python DefaultDublinCoreImpl怎么用?Python DefaultDublinCoreImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了DefaultDublinCoreImpl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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=''):
        """__init__(self, id, title='')"""
        # NOTA : We shouldn't call parent's __init__ method as it would link to PortalFolder.__init__ and this
        # method sets 'self.id' and 'self.title' which is unuseful for us.

        DefaultDublinCoreImpl.__init__(self)
        self._internalVersion = 2
        self._subscribersCount = 0
        self.id = id
        self.default_format = 'HTML'
        self.title = title
        self.description = ''
        self.testEmail = ''
        self.authorEmail = ''
        self.replyto = ''
        self.notify = False
        self.renderTemplate = ''
        self._v_renderTemplate = None
        self.extraRecipients = ''
        self._v_extraRecipients = None
        self.subscriber_folder_id = ''
        self._new_object = True
        self.alternative_portal_url = None
        self.text_format=''
        self.text=''
        self.activationMailSubject = ''
        self.activationMailTemplate = ''
        self.newsletterFooter = ''
开发者ID:RedTurtle,项目名称:TurtledGazette,代码行数:28,代码来源:NewsletterTheme.py

示例3: __init__

    def __init__(self, id=None, **kwargs):
        OFSContainer.__init__(self, id, **kwargs)
        PortalFolderBase.__init__(self, id, **kwargs)
        DefaultDublinCoreImpl.__init__(self, **kwargs)

        if id is not None:
            self.id = id
开发者ID:4teamwork,项目名称:plone.app.content,代码行数:7,代码来源:container.py

示例4: __init__

    def __init__(self, id, title=""):
        """__init__(self, id, title='')"""
        # NOTA : We shouldn't call parent's __init__ method as it would link to PortalFolder.__init__ and this
        # method sets 'self.id' and 'self.title' which is unuseful for us.

        global DEFAULT_ACTIVATION_TEMPLATE
        DefaultDublinCoreImpl.__init__(self)
        self._internalVersion = 2
        self._subscribersCount = 0
        self.id = id
        self.format_list = ["HTML", "Text"]
        self.default_format = "HTML"
        self.title = title
        self.description = ""
        self.testEmail = ""
        self.authorEmail = ""
        self.replyto = ""
        self.activationMailSubject = DEFAULT_ACTIVATION_SUBJECT
        self.activationMailTemplate = DEFAULT_ACTIVATION_TEMPLATE
        self.newsletterHeader = DEFAULT_NEWSLETTER_HEADER
        self.newsletterFooter = DEFAULT_NEWSLETTER_FOOTER
        self.newsletterStyle = DEFAULT_NEWSLETTER_STYLE
        self.notify = False
        self.renderTemplate = ""
        self._v_renderTemplate = None
        self.extraRecipients = ""
        self._v_extraRecipients = None
        self.subscriber_folder_id = ""
        self._new_object = True
        self.alternative_portal_url = None
        return
开发者ID:collective,项目名称:Products.PloneGazette,代码行数:31,代码来源:NewsletterTheme.py

示例5: __init__

    def __init__(self
                 , id
                 , title=''
                 , description=''
                 , effective_date = None 
                 , expiration_date = None 
                 , start_date = DateTime()
                 , end_date = DateTime()
                 , location=''
                 , contact_name=''
                 , contact_email=''
                 , contact_phone=''
                 , event_url=''
                ):
        DefaultDublinCoreImpl.__init__(self)
        self.id=id
        self.setTitle(title)
        self.setDescription(description)
        self.effective_date = effective_date
        self.expiration_date = expiration_date
        self.setStartDate(start_date)
        
        if end_date < start_date:
            end_date = start_date

        self.setEndDate(end_date)
        self.location=location
        self.contact_name=contact_name
        self.contact_email=contact_email
        self.contact_phone=contact_phone
        self.event_url=event_url
开发者ID:goschtl,项目名称:zope,代码行数:31,代码来源:Event.py

示例6: __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. 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,代码行数:30,代码来源:File.py

示例7: __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:pigaov10,项目名称:plone4.3,代码行数:7,代码来源:Link.py

示例8: __init__

 def __init__(self, id, title='', description='', text_format='', text=''):
     DefaultDublinCoreImpl.__init__(self)
     self.id = id
     self.title = title
     self.description = description
     self.setFormat(text_format)
     self._edit(text)
开发者ID:goschtl,项目名称:zope,代码行数:7,代码来源:Document.py

示例9: __init__

 def __init__(self, id, title=''):
     """__init__(self, id, title='')"""
     DefaultDublinCoreImpl.__init__(self)
     self.id = id
     self.title = title
     self.description = ""
     return
开发者ID:collective,项目名称:Products.PloneGazette,代码行数:7,代码来源:Section.py

示例10: __init__

    def __init__(self,
                 id, container, 
                 title='', description='',
                 submitter_id=None, submitter_name=None,
                 submitter_email=None,
                 kibitzers=None,
                 security_related=0,
                 topic=None, classification=None, importance=None, 
                 resolution=None,
                 version_info=None,
                 creation_date=None, modification_date=None,
                 effective_date=None, expiration_date=None,
                 assignees=None,
                 file=None, fileid=None, filetype=None,
                 invisible=0):
        """ """

        self.invisible = invisible
        SkinnedFolder.__init__(self, id, title)
        self._set_collector_path(container)

        mbtool = getToolByName(container, 'portal_membership')
        user = mbtool.getAuthenticatedMember()
        if submitter_id is None:
            submitter_id = str(user)
        self.submitter_id = submitter_id
        self.__of__(container)._set_submitter_specs(submitter_id,
                                                    submitter_name,
                                                    submitter_email)

        if kibitzers is None:
            kibitzers = ()
        self.kibitzers = kibitzers

        self.topic = topic
        self.classification = classification
        self.security_related = (security_related and 1) or 0
        self.importance = importance
        self.resolution = resolution
        self.version_info = version_info

        self.portal_type = 'Collector Issue'
        # 'contained' is for stuff that needs collector acquisition wrapping.
        container._setObject(id, self)
        contained = container._getOb(id)
        contained._setPortalTypeName('Collector Issue')
        DefaultDublinCoreImpl.__init__(contained,
                                       title=title, description=description,
                                       effective_date=effective_date,
                                       expiration_date=expiration_date)

        if modification_date:
            self._setModificationDate(DateTime(modification_date))
        wf = getToolByName(self, 'portal_workflow', None)
        if wf is not None:
            wf.notifyCreated(contained)
开发者ID:goschtl,项目名称:zope,代码行数:56,代码来源:CollectorIssue.py

示例11: __init__

 def __init__(self, id, title=''):
     """ChangeSet constructor"""
     DefaultDublinCoreImpl.__init__(self)
     self.id = id
     self.title = title
     self._diffs = []
     self._added = []
     self._removed = []
     self.ob1_path = []
     self.ob2_path = []
     self.recursive = 0
开发者ID:Rhaptos,项目名称:Products.CMFDiffTool,代码行数:11,代码来源:ChangeSet.py

示例12: __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,代码来源:Favorite.py

示例13: __init__

    def __init__(self, id=None, **kwargs):
        dublin_kw = {}
        for arg in [ "title", "subject", "description", "contributors",
                     "effective_date", "expiration_date", "format", "language",
                     "rights"]:
            if arg in kwargs:
                dublin_kw[arg] = kwargs.pop(arg)

        CMFOrderedBTreeFolderBase.__init__(self, id)
        DefaultDublinCoreImpl.__init__(self, **dublin_kw)

        for (k,v) in kwargs.items():
            setattr(self, k, v)
开发者ID:numahell,项目名称:plone.dexterity,代码行数:13,代码来源:content.py

示例14: __init__

    def __init__(self, id, title=''):
        """__init__(self, id, title='')"""

        DefaultDublinCoreImpl.__init__(self)
        self.id = id
        self.title = title
        self.description = ''
        self.meta_types = []
        self.subjects = []
        self.sort_on = 'id'
        self.reverse = 0
        self.only_review_state = ''
        self.max_objects = None
        return
开发者ID:eea,项目名称:Products.PloneGazette,代码行数:14,代码来源:NewsletterTopic.py

示例15: __init__

    def __init__(self, id, title=''):
        """__init__(self, id, title='')"""
        # NOTE : We shouldn't call parent's __init__ method as it would link to PortalFolder.__init__ and this
        # method sets 'self.id' and 'self.title' which is unuseful for us.

        global DEFAULT_ACTIVATION_TEMPLATE
        global DEFAULT_UNSUBSCRIBE_TEMPLATE
        DefaultDublinCoreImpl.__init__(self)
        self._internalVersion = 2
        self._subscribersCount = 0
        self.id = id
        self.format_list = ['HTML', 'Text']
        self.default_format = 'HTML'
        self.title = title
        self.description = ''
        self.testEmail = ''
        self.authorEmail = ''
        self.replyto = ''
        self.activationMailSubject = DEFAULT_ACTIVATION_SUBJECT
        self.activationMailTemplate = DEFAULT_ACTIVATION_TEMPLATE
        self.newsletterFooter = DEFAULT_NEWSLETTER_FOOTER
        self.notify = False
        self.renderTemplate = ''
        self._v_renderTemplate = None
        self.extraRecipients = ''
        self._v_extraRecipients = None
        self.subscriber_folder_id = ''
        self.unsubscribeMailSubject = "You have been unsubscribed from this newsletter"
        self.unsubscribeMailTemplate = DEFAULT_UNSUBSCRIBE_TEMPLATE
        self.confirmMailSubject = "Please confirm your unsubscribe."
        self.confirmMailTemplate = DEFAULT_CONFIRM_TEMPLATE
        self._new_object = True
        self.alternative_portal_url = None
        self.utm_source = ''
        self.utm_medium = 'email'

        #bouncing subscribers support
        self.extra_filters = u""
        self.verp_prefix = u""
        self.automatic_cleanup = False
        self.removeNoticeMailSubject = "You have been automatically removed from this newsletter"
        self.removeNoticeTemplate = DEFAULT_REMOVE_NOTICE_TEMPLATE
        return
开发者ID:eea,项目名称:Products.PloneGazette,代码行数:43,代码来源:NewsletterTheme.py


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