[Kss-devel] Writing custom actions

Hedley Roos hedleyroos at gmail.com
Mon Nov 5 16:47:33 CET 2007


Does anyone have a tutorial on how to write custom actions for kss
that ships with Plone 3?

I know how to do it with the older PloneAzax, but I am stuck now.

The pattern is pretty much the same I guess:
1. Write a js file
2. Register actions with zcml
3. Call it in your Python Script

My big problems arise when retrieving the commands. commands =
core.commands works fine, but attempting to access (not even call)
core.commands.addCommand causes my Python Script to bomb silently at
that point.

Any help greatly appreciated!
Hedley


More information about the Kss-devel mailing list