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


Python interfaces.ObjectEvent类代码示例

本文整理汇总了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
开发者ID:4teamwork,项目名称:ftw.publisher.sender,代码行数:8,代码来源:events.py

示例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
开发者ID:collective,项目名称:collective.groupspace.roles,代码行数:8,代码来源:roles.py

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

示例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
开发者ID:pombreda,项目名称:UnnaturalCodeFork,代码行数:9,代码来源:events.py

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

示例6: __init__

 def __init__(self, context, groupInfo, memberInfo):
     ObjectEvent.__init__(self, context)
     self.groupInfo = groupInfo
     self.memberInfo = memberInfo
开发者ID:groupserver,项目名称:gs.group.member.leave.base,代码行数:4,代码来源:event.py

示例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
开发者ID:grodniewicz,项目名称:oship,代码行数:6,代码来源:__init__.py

示例8: __init__

 def __init__(self, item, language, value):
     ObjectEvent.__init__(self, item)
     self.language = language
     self.value = value
开发者ID:eaudeweb,项目名称:naaya.Products.NaayaGlossary,代码行数:4,代码来源:events.py

示例9: __init__

 def __init__(self, context):
     ObjectEvent.__init__(self, context)
     self.obj = context
开发者ID:4teamwork,项目名称:ftw.publisher.receiver,代码行数:3,代码来源:events.py

示例10: __init__

 def __init__(self, obj, oldParent=None, oldName=None):
     ObjectEvent.__init__(self, obj)
     self.oldParent = oldParent
     self.oldName = oldName
开发者ID:anukat2015,项目名称:eea.daviz,代码行数:4,代码来源:events.py

示例11: __init__

 def __init__(self, object, target):
     ObjectEvent.__init__(self, object)
     self.target = target
开发者ID:plone,项目名称:plone.app.relations,代码行数:3,代码来源:interfaces.py

示例12: __init__

 def __init__(self, obj, transition, exception=None):
     ObjectEvent.__init__(self, obj)
     self.obj = obj
     self.transition = transition
     self.exception = exception
开发者ID:bikalabs,项目名称:bika.lims,代码行数:5,代码来源:api.py

示例13: __init__

 def __init__(self, obj, duplicates):
     ObjectEvent.__init__(self, obj)
     self.duplicates = duplicates
开发者ID:collective,项目名称:Products.CMFBibliographyAT,代码行数:3,代码来源:events.py

示例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
开发者ID:OpenBfS,项目名称:dokpool-plone,代码行数:6,代码来源:events.py

示例15: __init__

 def __init__(self, object, workflow, action):
     ObjectEvent.__init__(self, object)
     self.workflow = workflow
     self.action = action
开发者ID:pigaov10,项目名称:plone4.3,代码行数:4,代码来源:WorkflowCore.py


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