[Zope-CVS] CVS: Products/EventListenerTool - ListenerTool.py:1.4
Chris McDonough
chrism@zope.com
Mon, 3 Mar 2003 13:17:54 -0500
Update of /cvs-repository/Products/EventListenerTool
In directory cvs.zope.org:/tmp/cvs-serv19978
Modified Files:
ListenerTool.py
Log Message:
Merging suresh's edit changes.
=== Products/EventListenerTool/ListenerTool.py 1.3 => 1.4 ===
--- Products/EventListenerTool/ListenerTool.py:1.3 Wed Jan 8 14:37:03 2003
+++ Products/EventListenerTool/ListenerTool.py Mon Mar 3 13:17:19 2003
@@ -90,6 +90,13 @@
#
# IEventListenerRule implementation.
#
+ security.declareProtected( ManageEventListener, 'edit' )
+ def edit(self, moniker, condition, actions ):
+
+ """ See IEventListenerRule.
+ """
+ self.__init__(moniker, condition, actions)
+
security.declareProtected( View, 'getMoniker' )
def getMoniker( self ):
@@ -259,6 +266,14 @@
rule = ListenerRule( moniker, condition, actions )
rule._setId( rule_id )
self._setObject( rule_id, rule )
+
+ security.declareProtected( ManageEventListener, 'editRule' )
+ def editRule( self, rule_id, moniker, condition, actions ):
+
+ """ See IEventListenerTool.
+ """
+ rule = self.getRule(rule_id)
+ rule.edit(moniker, condition, actions )
security.declareProtected( ManageEventListener, 'deleteRule' )
def deleteRule( self, rule_id ):