[Zope3-checkins]
SVN: Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/pd_events.py
Add event permissions update for process definition
Julien Anguenot
ja at nuxeo.com
Wed Oct 13 16:56:53 EDT 2004
Log message for revision 28127:
Add event permissions update for process definition
Changed:
A Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/pd_events.py
-=-
Added: Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/pd_events.py
===================================================================
--- Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/pd_events.py 2004-10-13 20:55:32 UTC (rev 28126)
+++ Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/pd_events.py 2004-10-13 20:56:52 UTC (rev 28127)
@@ -0,0 +1,48 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+
+"""Process Definition Transition Changed Events
+
+$Id:$
+"""
+
+from zope.interface import implements
+from zope.app.event.objectevent import ObjectEvent
+
+from interfaces import IProcessDefinitionAddPermissionsEvent
+from interfaces import IProcessDefinitionDelPermissionsEvent
+
+class ProcessDefinitionAddPermissionsEvent(ObjectEvent):
+ """Process Definition Add Permissions event
+ """
+
+ implements(IProcessDefinitionAddPermissionsEvent)
+
+ def __init__(self, object, permissions_to_add=[]):
+ """Constructor
+ """
+ super(ProcessDefinitionAddPermissionsEvent, self).__init__(object)
+ self.permissions_to_add = permissions_to_add
+
+class ProcessDefinitionDelPermissionsEvent(ObjectEvent):
+ """Process Definition Del Permissions event
+ """
+
+ implements(IProcessDefinitionDelPermissionsEvent)
+
+ def __init__(self, object, permissions_to_remove=[]):
+ """Constructor
+ """
+ super(ProcessDefinitionDelPermissionsEvent, self).__init__(object)
+ self.permissions_to_remove = permissions_to_remove
More information about the Zope3-Checkins
mailing list