[Zope3-checkins]
SVN: Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/state_events.py
Permissions roles mapping update event. I can be useful to
take action when this mapping are updated on a givne state
Julien Anguenot
ja at nuxeo.com
Wed Oct 13 16:54:45 EDT 2004
Log message for revision 28125:
Permissions roles mapping update event. I can be useful to take action when this mapping are updated on a givne state
Changed:
A Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/state_events.py
-=-
Added: Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/state_events.py
===================================================================
--- Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/state_events.py 2004-10-13 20:49:58 UTC (rev 28124)
+++ Zope3/branches/jack-e_interfacebased_workflow/src/zope/app/workflow/stateful/state_events.py 2004-10-13 20:54:44 UTC (rev 28125)
@@ -0,0 +1,36 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+
+"""State related events
+
+$Id:$
+"""
+
+from zope.interface import implements
+from zope.app.event.objectevent import ObjectEvent
+
+from interfaces import IStatePermissionsRolesMappingUpdateEvent
+
+class StatePermissionsRolesMappingUpdateEvent(ObjectEvent):
+ """State Update Permissions Roles Mapping Event
+ """
+
+ implements(IStatePermissionsRolesMappingUpdateEvent)
+
+ def __init__(self, object, mapping):
+ """Constructor
+ """
+ super(StatePermissionsRolesMappingUpdateEvent,
+ self).__init__(object)
+ self.mapping = mapping
More information about the Zope3-Checkins
mailing list