本文整理汇总了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
示例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
示例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
示例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
示例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
示例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)
示例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)
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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