[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope
Subject:    Re: [Zope] Re: ZPT Equivalent for SecurityGetUser
From:       Andreas Pakulat <ap125 () informatik ! uni-rostock ! de>
Date:       2003-05-21 10:16:45
[Download RAW message or body]

On 21.Mai 2003 - 11:53:38, Andreas Pakulat wrote:
> On 20.Mai 2003 - 18:28:21, Evan Simpson wrote:
> > Andreas Pakulat wrote:
> > >And my conversion looks like:
> > >
> > >	<span tal:condition="python: here.REQUEST['AUTHENTICATED_USER'] == 
> > >	'Anonymous User'">
> > 
> > <span tal:condition="python:user.has_role(['Authenticated'])">
> 
> Thanks so much. That works even better than my own workaround:
> tal:define="name user/getUserName"
> tal:condition="python: name == 'Anonymous User'"
> 
> Where I still wasn't logged out, but clicking the manage_zmi_logout Link
> worked.
> 
> Now with you tip it works perfectly.

Looks like that mail was send to early :( I had a small error in my
logout_form, a "not" in the wrong place. 

I still have a problem when logging out, as it is not performed
automagically :( When I click logout and this loads the logout_form ZPT
I get the message 
"You're still logged in using ZMI" and a link where I can log off with
manage_zmi_logout. Which works perfectly, but I wnat to have the user
already logged off when he clicks on the Logout-Link and not to have him
click on another link. It also doesn`t play a role if I exclude the
macro-Things from the logout_form template. As said, the DTML-Method's
work. 

Has anybody a hint why DTML works and ZPT not?! I think it has to do
with this SecurityGetUser(), but am not sure.


-- 
It's all in the mind, ya know.

[Attachment #3 (application/pgp-signature)]
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic