hello, another newbie in Zope World ;o) First question : I 'm logging in Zope in /manage. I can do what I want, no right problem. So I do a little Pythno script for learning # req= container.REQUEST print "auth user: ", req.AUTHENTICATED_USER,"<br>", print "manager property: ", req.AUTHENTICATED_USER.has_permission('Manage Properties', context),"<br>", # when I click in "Test" the result is : auth user: Anonymous User <br> manager property: None <br> Why it ir "Anonymous" ??? I'm logging has "Cyrille" ......... ;o{ cyrille
At 11:09 2002-10-16 +0200, cyrille said:
hello, another newbie in Zope World ;o)
First question :
I 'm logging in Zope in /manage. I can do what I want, no right problem.
So I do a little Pythno script for learning # req= container.REQUEST print "auth user: ", req.AUTHENTICATED_USER,"<br>", print "manager property: ", req.AUTHENTICATED_USER.has_permission('Manage Properties', context),"<br>", #
when I click in "Test" the result is :
auth user: Anonymous User <br> manager property: None <br> Why it ir "Anonymous" ??? I'm logging has "Cyrille" ......... ;o{
That's funny? What happens if you change: req= container.REQUEST to: req= context.REQUEST Regards, Johan Carlsson -- Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: Västmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se
Johan Carlsson [EasyPublisher] wrote:
At 11:09 2002-10-16 +0200, cyrille said:
hello, another newbie in Zope World ;o)
First question :
I 'm logging in Zope in /manage. I can do what I want, no right problem.
So I do a little Pythno script for learning # req= container.REQUEST print "auth user: ", req.AUTHENTICATED_USER,"<br>", print "manager property: ", req.AUTHENTICATED_USER.has_permission('Manage Properties', context),"<br>", #
when I click in "Test" the result is :
auth user: Anonymous User <br> manager property: None <br> Why it ir "Anonymous" ??? I'm logging has "Cyrille" ......... ;o{
That's funny? What happens if you change:
req= container.REQUEST to: req= context.REQUEST
exactly the same thing.... Where is the real user ??? strange ... I'm using Zope 2.5.1 thanks for you answer ;o) cyrille
Regards, Johan Carlsson
At 12:32 2002-10-16 +0200, cyrille said:
Johan Carlsson [EasyPublisher] wrote:
exactly the same thing.... Where is the real user ??? strange ... I'm using Zope 2.5.1
Do you use the same instance of the browser to access the test page? (At least Internet Explorer can have different authenticated user per browser instance, which is really useful when debugging something as Anonymous.) Cheers, Johan Carlsson -- Torped Strategi och Kommunikation AB Johan Carlsson johanc@easypublisher.com Mail: Birkagatan 9 SE-113 36 Stockholm Sweden Visit: Västmannagatan 67, Stockholm, Sweden Phone +46-(0)8-32 31 23 Fax +46-(0)8-32 31 83 Mobil +46-(0)70-558 25 24 http://www.easypublisher.com http://www.torped.se
participants (2)
-
cyrille -
Johan Carlsson [EasyPublisher]