[Kss-devel] kss and response.redirect
Godefroid Chapelle
gotcha at bubblenet.be
Sat Nov 10 14:30:52 CET 2007
Hedley Roos wrote:
> Thanks Radim
>
> That is also my intended approach, but there is a snag - I can't call
> addCommand from a Python Script. Maybe it needs to be exposed in ttwapi?
>
> H
>
>> You can use something like this:
>>
>> ksscore = IKSSCoreCommands(self)
>> ksscore.setAttribute('#follow-me', 'href', 'http://plone.org')
>> self.commands.addCommand('plone-followLink', '#follow-me')
>> return self.render()
If you register your action in a commandset, you won't need to use
addCommand.
IIRC, there is an explanation how to create a command set in Jeroen's
presentation.
--
Godefroid Chapelle (aka __gotcha) http://bubblenet.be
More information about the Kss-devel
mailing list