Author: reebalazs
Date: Fri Jul 6 02:49:12 2007
New Revision: 44766
Modified:
kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/commands.py
kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/interfaces.py
Log:
Correct the interface for the continueEvent command
Modified: kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/commands.py
==============================================================================
--- kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/commands.py
(original)
+++ kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/commands.py Fri Jul
6 02:49:12 2007
@@ -128,10 +128,12 @@
command.addParam('varname', varname)
command.addParam('value', value)
- def continueEvent(self, name, **kw):
+ def continueEvent(self, name, allnodes=False, **kw):
""" see interfaces.py """
command = self.commands.addCommand('continueEvent')
command.addParam('name', name)
+ if allnodes:
+ command.addParam('allnodes', allnodes)
for key, value in kw.iteritems():
command.addParam(key, value)
Modified: kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/interfaces.py
==============================================================================
--- kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/interfaces.py
(original)
+++ kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/interfaces.py Fri Jul
6 02:49:12 2007
@@ -76,9 +76,20 @@
def setStateVar(varname, value):
"""Set a client side kukit variable"""
- def triggerEvent(name, **kw):
- """Trigger an event on the client """
- # TODO: explain a bit better what this does
+ def continueEvent(name, allnodes=False, **kw):
+ """Trigger a continuation event on the client
+
+ The event that is specified in "name" is called on the same
+ event binder instance (state) as the event that was triggered
originally.
+
+ All keywords will be passed to this event.
+
+ If allnodes=False (default), the event will be called on the
+ node where the original event was triggered.
+
+ If allnodes=True, the event will be called on all nodes
+ that the event is bound on.
+ """
def toggleClass(selector, value):
"""Add/remove a class to/from a node.
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins