[Kss-devel] kss and response.redirect

Balazs Ree ree at ree.hu
Tue Nov 6 10:08:05 CET 2007


On Tue, 06 Nov 2007 08:05:12 +0100, Jeroen Vloothuis wrote:

> Radim Novotny wrote:
>> There is plone-followLink command available (which actually sets
>> window.location), so you can define hidden, empty <a href="#"
>> id="somelink"> link in your template and use plone-followLink command,
>> if needed.
>>   
>>>> On the flipside, how do I in fact cause my browser to redirect in
>>>> said Python Script? Can I just set url.location.href (I forget the
>>>> notation)?
>>>>       
>>> Probably, yes.
>>>     
> We might want to have an extra action for this. This could be either a
> plugin or part of the core actions. Could you please give some
> descriptions on situations where this might be useful?

Redirect is actually a good idea to implement. The only reason that it 
does not exist, is that noone needed it so far.

The name could be followUrl? or redirect?

I believe also plone-followLink and plone-submitForm has to come into a 
separate command set, since it is not Plone or even Zope specific. 
Together with the newly proposed followUrl (?) action.

These all together can either go into the core command set, or it may 
even be a better idea to make a separate "url" (?) command set that is 
responsible for url and submit related functionality.

If we keep it separate it even has the advantage that it can be developed 
independently and if ready we can distribute it with the core. Also we 
don't bloat "core" plugin unnecessarily big.

Opinions?

-- 
Balazs Ree



More information about the Kss-devel mailing list