Author: reebalazs
Date: Thu May 24 21:23:51 2007
New Revision: 43605
Modified:
kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/commands.py
kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/configure.zcml
Log:
- Add registry and command for moveNodeAsLastChild
- remove duplicate command copyChildNodesTo (was 2x)
- fix command and registry for continueEvent
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 Thu May
24 21:23:51 2007
@@ -108,9 +108,9 @@
command = self.commands.addCommand('moveNodeBefore', selector)
data = command.addParam('html_id', id)
- def copyChildNodesTo(self, selector, id):
+ def moveNodeAsLastChild(self, selector, id):
""" see interfaces.py """
- command = self.commands.addCommand('copyChildNodesTo', selector)
+ command = self.commands.addCommand('moveNodeAsLastChild', selector)
data = command.addParam('html_id', id)
def copyChildNodesTo(self, selector, id):
@@ -124,9 +124,9 @@
command.addParam('varname', varname)
command.addParam('value', value)
- def triggerEvent(self, name, **kw):
+ def continueEvent(self, name, **kw):
""" see interfaces.py """
- command = self.commands.addCommand('triggerEvent')
+ command = self.commands.addCommand('continueEvent')
command.addParam('name', name)
for key, value in kw.iteritems():
command.addParam(key, value)
Modified: kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/configure.zcml
==============================================================================
--- kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/configure.zcml
(original)
+++ kukit/azax/branch/1.1-ree-plugin-dad/plugins/core/configure.zcml Thu May
24 21:23:51 2007
@@ -215,6 +215,12 @@
/>
<azax:registerAction
+ name="moveNodeAsLastChild"
+ command_factory="selector"
+ params_mandatory="html_id"
+ />
+
+ <azax:registerAction
name="copyChildNodesFrom"
command_factory="selector"
params_mandatory="html_id"
@@ -251,10 +257,10 @@
/>
<azax:registerAction
- name="triggerEvent"
+ name="continueEvent"
command_factory="global"
params_mandatory="name"
- params_optional="id namespace"
+ params_optional="allnodes"
/>
<azax:registerAction
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins