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


Python Folder.__init__方法代码示例

本文整理汇总了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)
开发者ID:silvacms,项目名称:silva.core.editor,代码行数:9,代码来源:service.py

示例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)
开发者ID:Haufe-Lexware,项目名称:hl.plone.boardnotifications,代码行数:11,代码来源:mocks.py

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

示例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)
开发者ID:socialplanning,项目名称:opencore-listen,代码行数:23,代码来源:mail_message.py

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

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

示例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)
开发者ID:cedricmessiant,项目名称:Products.ZCatalog,代码行数:5,代码来源:test_zcatalog.py

示例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
开发者ID:bogtan,项目名称:Naaya,代码行数:5,代码来源:Widget.py

示例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)
开发者ID:eaudeweb,项目名称:Products.NaayaSurvey,代码行数:5,代码来源:SurveyTool.py

示例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
开发者ID:bbc,项目名称:zenoss-prodbin,代码行数:5,代码来源:LinkManager.py

示例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()
开发者ID:RadioFreeAsia,项目名称:Products.CompositePack,代码行数:7,代码来源:tool.py

示例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 = {}
开发者ID:eaudeweb,项目名称:naaya,代码行数:6,代码来源:CronTool.py

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

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

示例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)
开发者ID:pombredanne,项目名称:trunk-eggs,代码行数:5,代码来源:exfile_item.py


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