コード例 #1
0
    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
0
ファイル: events.py プロジェクト: dtgit/dtedu
 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
コード例 #3
0
    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
コード例 #4
0
 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
コード例 #5
0
ファイル: events.py プロジェクト: pombreda/UnnaturalCodeFork
    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
コード例 #6
0
    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
コード例 #7
0
 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
コード例 #8
0
 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
コード例 #9
0
ファイル: tests.py プロジェクト: ale-rt/z3c.relationfield
 def test_break_relations_missing_catalog(self):
     # Remove relations catalog and ensure the event handler doesn't fail
     unregister_fake_catalog()
     try:
         event.breakRelations(ObjectEvent(self.content))
     except ComponentLookupError:
         self.fail("breakRelations fails when catalog utility is missing")
コード例 #10
0
ファイル: tests.py プロジェクト: ale-rt/z3c.relationfield
 def test_missing_intids(self):
     """Event handlers which trigger on object removal should not
     throw exceptions when the utilities are missing.  The utilities may
     have been deleted in the same transaction (e.g. site deletion)."""
     # Remove intid utility and ensure the event handler doesn't fail
     unregister_fake_intid()
     try:
         event.breakRelations(ObjectEvent(self.content))
     except ComponentLookupError:
         self.fail("breakRelations fails when intid utility is missing")
コード例 #11
0
def workflowTransitionEventDispatcher(event):
    source = event.source
    destination = event.destination

    iface = workflow_transition_event_map.get(
        (type(event.object), source, destination))

    if iface is None:
        for specification in interface.providedBy(event.object):
            iface = workflow_transition_event_map.get(
                (specification, source, destination))
            if iface is not None:
                break

    if iface is not None:
        transition_event = ObjectEvent(event.object)
        interface.alsoProvides(transition_event, iface)
        notify(transition_event)
コード例 #12
0
ファイル: events.py プロジェクト: anukat2015/eea.daviz
 def __init__(self, obj, oldParent=None, oldName=None):
     ObjectEvent.__init__(self, obj)
     self.oldParent = oldParent
     self.oldName = oldName
コード例 #13
0
ファイル: events.py プロジェクト: enfold/collective.async
 def __init__(self, object, newid, newtitle):
     ObjectEvent.__init__(self, object)
     self.newid = newid
     self.newtitle = newtitle
コード例 #14
0
 def __init__(self, context, queue):
     ObjectEvent.__init__(self, context)
     self.queue = queue
コード例 #15
0
 def __init__(self, context, groupInfo, memberInfo):
     ObjectEvent.__init__(self, context)
     self.groupInfo = groupInfo
     self.memberInfo = memberInfo
コード例 #16
0
 def __init__(self, context, groupInfo, memberInfo):
     ObjectEvent.__init__(self, context)
     self.groupInfo = groupInfo
     self.memberInfo = memberInfo
コード例 #17
0
 def __init__(self, wc, baseline, relation, message):
     ObjectEvent.__init__(self, wc)
     self.baseline = baseline
     self.relation = relation
     self.message = message
コード例 #18
0
 def __init__(self, wc, baseline, relation):
     ObjectEvent.__init__(self, wc)
     self.baseline = baseline
     self.relation = relation
コード例 #19
0
 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
コード例 #20
0
 def __init__(self, code_review_comment, original_email):
     ObjectEvent.__init__(self, code_review_comment)
     self.email = original_email
コード例 #21
0
 def __init__(self, object, source):
     ObjectEvent.__init__(self, object)
     self.source = source
コード例 #22
0
 def __init__(self, object, target):
     ObjectEvent.__init__(self, object)
     self.target = target
コード例 #23
0
 def __init__(self, obj, oldParent=None, oldName=None):
     ObjectEvent.__init__(self, obj)
     self.oldParent = oldParent
     self.oldName = oldName
コード例 #24
0
 def __init__(self, context, log):
     ObjectEvent.__init__(self, context)
     self.log = log
コード例 #25
0
 def __init__(self, item, language, value):
     ObjectEvent.__init__(self, item)
     self.language = language
     self.value = value
コード例 #26
0
ファイル: api.py プロジェクト: bikalabs/bika.lims
 def __init__(self, obj, transition, exception=None):
     ObjectEvent.__init__(self, obj)
     self.obj = obj
     self.transition = transition
     self.exception = exception
コード例 #27
0
 def __init__(self, context, queue):
     ObjectEvent.__init__(self, context)
     self.queue = queue
コード例 #28
0
 def __init__(self, baseline, wc, relation):
     ObjectEvent.__init__(self, baseline)
     self.working_copy = wc
     self.relation = relation
コード例 #29
0
 def __init__(self, context):
     ObjectEvent.__init__(self, context)
     self.obj = context
コード例 #30
0
 def __init__(self, wc, baseline):
     ObjectEvent.__init__(self, wc)
     self.baseline = baseline
コード例 #31
0
ファイル: WorkflowCore.py プロジェクト: pigaov10/plone4.3
 def __init__(self, object, workflow, action):
     ObjectEvent.__init__(self, object)
     self.workflow = workflow
     self.action = action
コード例 #32
0
ファイル: __init__.py プロジェクト: grodniewicz/oship
 def __init__(self, object, oldParent, oldName, newParent, newName):
     ObjectEvent.__init__(self, object)
     self.oldParent = oldParent
     self.oldName = oldName
     self.newParent = newParent
     self.newName = newName
コード例 #33
0
 def __init__(self, baseline, wc, relation):
     ObjectEvent.__init__(self, baseline)
     self.working_copy = wc
     self.relation = relation
コード例 #34
0
ファイル: WorkflowCore.py プロジェクト: bendavis78/zope
 def __init__(self, object, workflow, action):
     ObjectEvent.__init__(self, object)
     self.workflow = workflow
     self.action = action
コード例 #35
0
 def __init__(self, wc, baseline):
     ObjectEvent.__init__(self, wc)
     self.baseline = baseline
コード例 #36
0
 def __init__(self, object, oldParent, oldName, newParent, newName):
     ObjectEvent.__init__(self, object)
     self.oldParent = oldParent
     self.oldName = oldName
     self.newParent = newParent
     self.newName = newName
コード例 #37
0
 def __init__(self, object, team_id, old_team_id):
     ObjectEvent.__init__(self, object)
     self.team_id = team_id
     self.old_team_id = old_team_id
コード例 #38
0
 def __init__(self, object, prefix):
     ObjectEvent.__init__(self, object)
     self.prefix = prefix
コード例 #39
0
 def __init__(self, object, userid):
     self.userid = userid
     ObjectEvent.__init__(self, object)
コード例 #40
0
 def __init__(self, context, log):
     ObjectEvent.__init__(self, context)
     self.log = log
コード例 #41
0
 def __init__(self, obj, transition, exception=None):
     ObjectEvent.__init__(self, obj)
     self.obj = obj
     self.transition = transition
     self.exception = exception
コード例 #42
0
 def __init__(self, obj, duplicates):
     ObjectEvent.__init__(self, obj)
     self.duplicates = duplicates
コード例 #43
0
 def __init__(self, obj, duplicates):
     ObjectEvent.__init__(self, obj)
     self.duplicates = duplicates
コード例 #44
0
 def __init__(self, context, siteInfo, memberInfo):
     ObjectEvent.__init__(self, context)
     self.siteInfo = siteInfo
     self.memberInfo = memberInfo
コード例 #45
0
ファイル: events.py プロジェクト: OpenBfS/dokpool-plone
 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
コード例 #46
0
 def __init__(self, context, recipients):
     ObjectEvent.__init__(self, context)
     self.context = context
     self.context.recipients = recipients
コード例 #47
0
ファイル: events.py プロジェクト: OpenBfS/dokpool-plone
 def __init__(self, object, tool, context=None):
     ObjectEvent.__init__(self, object)
     self.tool = tool
     self.context = context
コード例 #48
0
 def __init__(self, wc, baseline, relation, message):
     ObjectEvent.__init__(self, wc)
     self.baseline = baseline
     self.relation = relation
     self.message = message
コード例 #49
0
ファイル: events.py プロジェクト: IMIO/ric.core
 def __init__(self, context, recipients):
     ObjectEvent.__init__(self, context)
     self.context = context
     self.context.recipients = recipients
コード例 #50
0
 def __init__(self, wc, baseline, relation):
     ObjectEvent.__init__(self, wc)
     self.baseline = baseline
     self.relation = relation
コード例 #51
0
 def __init__(self, object, old_local_roles, new_local_roles):
     ObjectEvent.__init__(self, object)
     self.old_local_roles = old_local_roles
     self.new_local_roles = new_local_roles