[Kss-devel] kss and response.redirect
Godefroid Chapelle
gotcha at bubblenet.be
Sat Nov 10 14:29:18 CET 2007
Balazs Ree wrote:
> 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.
Exact
>
> The name could be followUrl? or redirect?
I would all it redirect because it is the word we all know his from HTTP
>
> 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.
Agreed
>
> 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.
I like the url idea !
>
> 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?
>
Hereabove ;-)
--
Godefroid Chapelle (aka __gotcha) http://bubblenet.be
More information about the Kss-devel
mailing list