[KSS-checkins] r51264 - kukit/kss.core/branch/1.4pre/kss/core/plugins/core
reebalazs at codespeak.net
reebalazs at codespeak.net
Mon Feb 4 19:49:40 CET 2008
Author: reebalazs
Date: Mon Feb 4 19:49:40 2008
New Revision: 51264
Modified:
kukit/kss.core/branch/1.4pre/kss/core/plugins/core/commands.py
kukit/kss.core/branch/1.4pre/kss/core/plugins/core/configure.zcml
kukit/kss.core/branch/1.4pre/kss/core/plugins/core/interfaces.py
Log:
(forwardport -r51263 from 1.2): Fix core commandset, continueEvent must match up the kukit.js implementation,
dquote> or otherwise the action cannot be used at all. (needed for autocomplete)
Modified: kukit/kss.core/branch/1.4pre/kss/core/plugins/core/commands.py
==============================================================================
--- kukit/kss.core/branch/1.4pre/kss/core/plugins/core/commands.py (original)
+++ kukit/kss.core/branch/1.4pre/kss/core/plugins/core/commands.py Mon Feb 4 19:49:40 2008
@@ -117,10 +117,11 @@
command.addParam('varname', varname)
command.addParam('value', value)
- def triggerEvent(self, name, **kw):
+ def continueEvent(self, name, allnodes=False, **kw):
""" see interfaces.py """
- command = self.commands.addCommand('triggerEvent')
+ command = self.commands.addCommand('continueEvent')
command.addParam('name', name)
+ command.addParam('allnodes', allnodes and 'true' or 'false')
for key, value in kw.iteritems():
command.addParam(key, value)
Modified: kukit/kss.core/branch/1.4pre/kss/core/plugins/core/configure.zcml
==============================================================================
--- kukit/kss.core/branch/1.4pre/kss/core/plugins/core/configure.zcml (original)
+++ kukit/kss.core/branch/1.4pre/kss/core/plugins/core/configure.zcml Mon Feb 4 19:49:40 2008
@@ -282,10 +282,10 @@
/>
<kss:action
- name="triggerEvent"
+ name="continueEvent"
command_factory="global"
params_mandatory="name"
- params_optional="id namespace"
+ params_optional="allnodes"
/>
<kss:action
Modified: kukit/kss.core/branch/1.4pre/kss/core/plugins/core/interfaces.py
==============================================================================
--- kukit/kss.core/branch/1.4pre/kss/core/plugins/core/interfaces.py (original)
+++ kukit/kss.core/branch/1.4pre/kss/core/plugins/core/interfaces.py Mon Feb 4 19:49:40 2008
@@ -76,7 +76,7 @@
def setStateVar(varname, value):
"""Set a client side kukit variable"""
- def triggerEvent(name, **kw):
+ def continueEvent(name, allnodes=False, **kw):
"""Trigger an event on the client """
# TODO: explain a bit better what this does
More information about the Kukit-checkins
mailing list