本文整理汇总了Python中OFS.Folder.Folder.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Folder.__init__方法的具体用法?Python Folder.__init__怎么用?Python Folder.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OFS.Folder.Folder
的用法示例。
在下文中一共展示了Folder.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, *args, **kw):
Folder.__init__(self, *args, **kw)
SilvaService.__init__(self, *args, **kw)
self._config_declarations = {}
self._per_tag_allowed_attr = set(DEFAULT_PER_TAG_WHITELISTS)
self._allowed_html_attributes = set(DEFAULT_HTML_ATTR_WHITELIST)
self._allowed_css_attributes = set(DEFAULT_CSS_PROP_WHITELIST)
示例2: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id, title, forum, creator=None, commenttext=''):
Folder.__init__(self, id)
ContentMock.__init__(self, id, title, creator)
self.forum = forum
self.comments = []
comment = CommentMock(id, title, self, creator, commenttext)
self.comments.append(comment)
comment = comment.__of__(self)
self._setObject(id, comment)
示例3: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id, title, description, coverage, keywords, sortorder,
file, precondition, releasedate, lang):
"""
Constructor.
"""
self.save_properties(title, description, coverage, keywords, sortorder,
releasedate, lang)
Folder.__init__(self, id)
NyProperties.__dict__['__init__'](self)
示例4: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id, from_addr, subject, date=None, **kwargs):
from_addr = from_addr.decode("utf-8", "replace")
self.from_addr = decode_header(email.Header.Header(from_addr))
subject = subject.decode("utf-8", "replace")
self.subject = decode_header(email.Header.Header(subject))
# date is expected to be a DateTime or None
if not isinstance(date, DateTime):
self.date = DateTime(date)
else:
self.date = date
sender_name = parseaddr(self.from_addr)[0]
title_subj = len(self.subject) > 20 and (self.subject[:20] + " ...") or self.subject
if sender_name:
self.title = u"%s / %s" % (title_subj, sender_name)
else:
self.title = title_subj
Folder.__init__(self, id)
示例5: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id, lang=None, **kwargs):
Folder.__init__(self, id=id)
self.set_localproperty('title', 'string', lang)
self.set_localproperty('description', 'text', lang)
self.saveProperties(lang=lang, **kwargs)
示例6: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id):
Folder.__init__(self)
self._setId(id)
示例7: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id):
self._setId(id)
OFS_Folder.__init__(self)
示例8: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id, title='', lang=None):
Folder.__init__(self, id=id)
self.title = title
示例9: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id, **kwargs):
Folder.__init__(self, id=id)
self.manage_changeProperties(**kwargs)
示例10: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id, *args, **kwargs):
Folder.__init__(self, id, *args, **kwargs)
self.id = id
示例11: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self):
Folder.__init__(self)
BaseTool.__init__(self)
self._layout_registry = LayoutRegistry()
self._viewlet_registry = ViewletRegistry()
示例12: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id, **kw):
Folder.__init__(self, id)
self.manage_changeProperties(**kw)
self.last_time = {}
示例13: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id='.container'):
self._table_name = ''
Folder.__init__(self, id)
示例14: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id='portal_workflow'):
Folder.__init__(self, id)
self._default_chain = ()
self._chains_by_type = {}
示例15: __init__
# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import __init__ [as 别名]
def __init__(self, id):
NyContentData.__init__(self)
Folder.__init__(self, id)