本文整理汇总了Python中zope.component.interfaces.ObjectEvent类的典型用法代码示例。如果您正苦于以下问题:Python ObjectEvent类的具体用法?Python ObjectEvent怎么用?Python ObjectEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ObjectEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
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__
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__
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__
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__
def __init__(self, proposal, user, from_state, to_state):
ObjectEvent.__init__(self, proposal)
self.user = user
self.from_state = from_state
self.to_state = to_state
示例6: __init__
def __init__(self, context, groupInfo, memberInfo):
ObjectEvent.__init__(self, context)
self.groupInfo = groupInfo
self.memberInfo = memberInfo
示例7: __init__
def __init__(self, object, oldParent, oldName, newParent, newName):
ObjectEvent.__init__(self, object)
self.oldParent = oldParent
self.oldName = oldName
self.newParent = newParent
self.newName = newName
示例8: __init__
def __init__(self, item, language, value):
ObjectEvent.__init__(self, item)
self.language = language
self.value = value
示例9: __init__
def __init__(self, context):
ObjectEvent.__init__(self, context)
self.obj = context
示例10: __init__
def __init__(self, obj, oldParent=None, oldName=None):
ObjectEvent.__init__(self, obj)
self.oldParent = oldParent
self.oldName = oldName
示例11: __init__
def __init__(self, object, target):
ObjectEvent.__init__(self, object)
self.target = target
示例12: __init__
def __init__(self, obj, transition, exception=None):
ObjectEvent.__init__(self, obj)
self.obj = obj
self.transition = transition
self.exception = exception
示例13: __init__
def __init__(self, obj, duplicates):
ObjectEvent.__init__(self, obj)
self.duplicates = duplicates
示例14: __init__
def __init__(self, object, tool, diff, context=None, comment=None):
ObjectEvent.__init__(self, object)
self.tool = tool
self.diff = diff
self.context = context
self.comment = comment
示例15: __init__
def __init__(self, object, workflow, action):
ObjectEvent.__init__(self, object)
self.workflow = workflow
self.action = action