本文整理汇总了Python中Products.CMFDefault.DublinCore.DefaultDublinCoreImpl.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python DefaultDublinCoreImpl.__init__方法的具体用法?Python DefaultDublinCoreImpl.__init__怎么用?Python DefaultDublinCoreImpl.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Products.CMFDefault.DublinCore.DefaultDublinCoreImpl
的用法示例。
在下文中一共展示了DefaultDublinCoreImpl.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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
示例2: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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)
示例3: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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 = ''
示例4: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
def __init__(self, id, title=''):
"""__init__(self, id, title='')"""
DefaultDublinCoreImpl.__init__(self)
self.id = id
self.title = title
self.description = ""
return
示例5: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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
示例6: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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
示例7: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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 )
示例8: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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
示例9: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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 )
示例10: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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)
示例11: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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
示例12: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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
示例13: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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)
示例14: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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
示例15: __init__
# 需要导入模块: from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl [as 别名]
# 或者: from Products.CMFDefault.DublinCore.DefaultDublinCoreImpl import __init__ [as 别名]
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