[Zope-CMF] Re: Question on Redirecting using the Logged_in form
hapfire2000
slane@pa.aacisd.com
Mon, 17 Jun 2002 19:01:44 -0000
--- In zopeCMF@y..., Dieter Maurer <dieter@h...> wrote:
> hapfire2000 writes:
> > I have been working on redirecting a user from the login page
> > directly to their "My stuff" page once they click on the "log
in"
> > button and are authenticated. I can get it to work in the dtml
> > (generic) logged_in form by modifying it.
> > Example below:
> > ...
> > MODIFIED:
> > <!-- ****** Enable the automatic redirect ***** -->
> > <dtml-call expr="RESPONSE.redirect
> >
('http://myserver/theportalname/Members/'+AUTHENTICATED_USER.getId()
> > +'/folder_contents')">
> > <!-- ****** Enable the automatic redirect ***** -->
> > ...
> > The problem is when I try to do the same thing in the ZPT
generic
> > logged_in form. I cant seem to get it to work. I keep getting
> > errors.
> Which one?
>
> Try:
>
> <tal:div tal:define="dummy python:request.RESPONSE.redirect(
>
'http://myserver/theportalname/Members/'+request.AUTHENTICAT
ED_USER.getId()+'/folder_contents');
> " />
>
>
> Dieter
>
> Thanks for your help. That line of code works. Thanks again.
Steve
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@z...
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and
feature requests