[Zope] Cookie Crumbler

Dieter Maurer dieter at handshake.de
Fri Jan 6 13:56:58 EST 2006


Infor Gates wrote at 2006-1-5 14:11 -0800:
>Yes, after reading the source code.  However, my problem as I found out is that I do not know how to access the methods in CC from DTML. I am not well verse with Python (still learning though).

Please, read my messages carefully!

As "CookieCrumbler.logout" performs a redirect, it is usually better
not to call "logout" from a DTML method but activate it via an URL
(e.g. via a "logout" link or a redirect).


However, you can call the "CookieCrumbler" methods from DTML
like you call any other method:

     <dtml-call expr="your_cookie_crumber_name.logout()">


Note again that "logout" performs a redirect. You will usually not
see the result of your "DTML" page.

> ...
>Dieter Maurer <dieter at handshake.de> wrote: Infor Gates wrote at 2006-1-4 20:14 -0800:
>>I have a trying time using Cookie Crumbler 1.2 with Zope2.8.4 (windows version).
>>I could NOT figure out how to log out a user.  I have simplified to the orginal logged_out form to this:
>
>The "Cookie Crumber" has a "logout" method.
>You should use it for the logout (and not try to emulate it yourself).
>
>You can activate it via an URL of the form:
>
>    url_to_your_cookie_crumbler/logout
>
>It will redirect to the "logout_page" (you can configure for
>your "Cookie Crumbler".
>
>
>-- 
>Dieter
>
>
>
>			
>---------------------------------
>Yahoo! Photos
> Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.<div id="RTEContent">Yes, after reading the source code.&nbsp; However, my problem as I found out is that I do not know how to access the methods in CC from DTML. I am not well verse with Python (still learning though).<br><br>Thank you.<br><br><b><i>Dieter Maurer &lt;dieter at handshake.de&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Infor Gates wrote at 2006-1-4 20:14 -0800:<br>&gt;I have a trying time using Cookie Crumbler 1.2 with Zope2.8.4 (windows version).<br>&gt;I could NOT figure out how to log out a user.  I have simplified to the orginal logged_out form to this:<br><br>The "Cookie Crumber" has a "logout" method.<br>You should use it for the logout (and not try to emulate it yourself).<br><br>You can activate it via an URL of the form:<br><br>    url_to_your_cookie_crumbler/logout<br><br>It will redirect to the "logout_page" (you can configure for<br>your "Cookie Crumbler".<br><br><br>--
> <br>Dieter<br></blockquote><br></div><p>
>	
>		<hr size=1>Yahoo! Photos<br> 
>Ring in the New Year with <a href="http://us.rd.yahoo.com/mail_us/taglines/photos/*http://pa.yahoo.com/*http://us.rd.yahoo.com/mail_us/taglines/photos/evt=38087/*http://pg.photos.yahoo.com/ph//page?.file=calendar_splash.html&.dir=">Photo Calendars</a>. Add photos, events, holidays, whatever.
-- 
Dieter


More information about the Zope mailing list