How to get authentiedcated user name in pythong method?
How can I do that just as <dtml-var "AUTHENTICATED_USER.getUserName()"> in dtml? I don't want to pass AUTHENTICATED_user as a parameter. A hint please. cheers Dirksen __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
self.REQUEST.AUTHENTICATED_USER.getUserName() ----- Original Message ----- From: "Dirksen" <dirksen_lau@yahoo.com> To: <zope@zope.org> Sent: Thursday, November 23, 2000 1:33 AM Subject: [Zope] How to get authentiedcated user name in pythong method? | How can I do that just as <dtml-var "AUTHENTICATED_USER.getUserName()"> in dtml? I don't | want to pass AUTHENTICATED_user as a parameter. A hint please. | | cheers | Dirksen | | __________________________________________________ | Do You Yahoo!? | Yahoo! Shopping - Thousands of Stores. Millions of Products. | http://shopping.yahoo.com/ | | _______________________________________________ | Zope maillist - Zope@zope.org | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev )
look LoginManager.py under Products/LoginManager to look for how it is refered and figure it out? Dirksen wrote:
How can I do that just as <dtml-var "AUTHENTICATED_USER.getUserName()"> in dtml? I don't want to pass AUTHENTICATED_user as a parameter. A hint please.
cheers Dirksen
__________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Chalu Kim -
Dirksen -
Phil Harris