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


Python ObjectEvent.__init__方法代码示例

本文整理汇总了Python中zope.component.interfaces.ObjectEvent.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ObjectEvent.__init__方法的具体用法?Python ObjectEvent.__init__怎么用?Python ObjectEvent.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在zope.component.interfaces.ObjectEvent的用法示例。


在下文中一共展示了ObjectEvent.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
    def __init__(self, context, state, job):
        ObjectEvent.__init__(self, context)
        self.action = job.action
        self.title = job.objectTitle
        self.path = job.objectPath
        self.uid = job.objectUID

        self.state = state
开发者ID:4teamwork,项目名称:ftw.publisher.sender,代码行数:10,代码来源:events.py

示例2: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, object, old_user_roles, new_user_roles, old_group_roles, 
              new_group_roles, request=None):
     ObjectEvent.__init__(self, object)
     self.old_user_roles = old_user_roles
     self.new_user_roles = new_user_roles
     self.old_group_roles = old_group_roles
     self.new_group_roles = new_group_roles
     self.request = request
开发者ID:collective,项目名称:collective.groupspace.roles,代码行数:10,代码来源:roles.py

示例3: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, obj, workflow, old_state, new_state, transition, status, kwargs):
     ObjectEvent.__init__(self, obj)
     self.workflow = workflow
     self.old_state = old_state
     self.new_state = new_state
     self.transition = transition
     self.status = status
     self.kwargs = kwargs
开发者ID:dtgit,项目名称:dtedu,代码行数:10,代码来源:events.py

示例4: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
    def __init__(self, db_branch, bzr_branch):
        """"Construct a scanner event.

        :param db_branch: The database IBranch.
        :param bzr_branch: The Bazaar branch being scanned.
        """
        ObjectEvent.__init__(self, db_branch)
        self.db_branch = db_branch
        self.bzr_branch = bzr_branch
开发者ID:pombreda,项目名称:UnnaturalCodeFork,代码行数:11,代码来源:events.py

示例5: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, object, oldParent, oldName, newParent, newName):
     ObjectEvent.__init__(self, object)
     self.oldParent = oldParent
     self.oldName = oldName
     self.newParent = newParent
     self.newName = newName
开发者ID:grodniewicz,项目名称:oship,代码行数:8,代码来源:__init__.py

示例6: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, object, userid):
     self.userid = userid
     ObjectEvent.__init__(self, object)
开发者ID:naro,项目名称:pas.plugins.memberapproval,代码行数:5,代码来源:events.py

示例7: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, object):
     ObjectEvent.__init__(self, object)
开发者ID:collective,项目名称:collective.cron,代码行数:4,代码来源:events.py

示例8: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, context):
     ObjectEvent.__init__(self, context)
     self.obj = context
开发者ID:4teamwork,项目名称:ftw.publisher.receiver,代码行数:5,代码来源:events.py

示例9: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, object, prefix):
     ObjectEvent.__init__(self, object)
     self.prefix = prefix
开发者ID:4teamwork,项目名称:opengever.core,代码行数:5,代码来源:events.py

示例10: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, object, source):
     ObjectEvent.__init__(self, object)
     self.source = source
开发者ID:plone,项目名称:plone.app.relations,代码行数:5,代码来源:interfaces.py

示例11: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, obj, transition, exception=None):
     ObjectEvent.__init__(self, obj)
     self.obj = obj
     self.transition = transition
     self.exception = exception
开发者ID:bikalabs,项目名称:bika.lims,代码行数:7,代码来源:api.py

示例12: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, obj, duplicates):
     ObjectEvent.__init__(self, obj)
     self.duplicates = duplicates
开发者ID:collective,项目名称:Products.CMFBibliographyAT,代码行数:5,代码来源:events.py

示例13: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, item, language, value):
     ObjectEvent.__init__(self, item)
     self.language = language
     self.value = value
开发者ID:eaudeweb,项目名称:naaya.Products.NaayaGlossary,代码行数:6,代码来源:events.py

示例14: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, context, groupInfo, memberInfo):
     ObjectEvent.__init__(self, context)
     self.groupInfo = groupInfo
     self.memberInfo = memberInfo
开发者ID:groupserver,项目名称:gs.group.member.leave.base,代码行数:6,代码来源:event.py

示例15: __init__

# 需要导入模块: from zope.component.interfaces import ObjectEvent [as 别名]
# 或者: from zope.component.interfaces.ObjectEvent import __init__ [as 别名]
 def __init__(self, obj, oldParent=None, oldName=None):
     ObjectEvent.__init__(self, obj)
     self.oldParent = oldParent
     self.oldName = oldName
开发者ID:anukat2015,项目名称:eea.daviz,代码行数:6,代码来源:events.py


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