Michael Fox wrote:
Hi,
Is it possible to output a username once a acl user has logged in?
Example - If my login is Bill, once I enter the secure area of the site, it could say - Hi Bill
Hi <dtml-var AUTHENTICATED_USER>.
Not to tramps on our illustrious developer, but this is a bad idea... you should instead use: <dtml-var AUTHENTICATED_USER.name> or <dtml-var "AUTHENTICATED_USER.getUserName()"> The reasons for this are multitudinous, but largely derived from behaviour of more advanced user mechanisms, like LDAP. Chris -- | Christopher Petrilli Python Powered Digital Creations, Inc. | petrilli@digicool.com http://www.digicool.com
i was suggesting something similar, actually, but my suggestion failed because i could not remember what the method name is to get at the desired name. like someone else suggested (was it this morning?), what about a reference document that lists * variables accessible from REQUEST (like AUTHENTICATED_USER and such) * methods exposed by these objects (like AUTHENTICATED_USER.getUserName()) jens Jens Vagelpohl Systems Administrator Washtenaw Development Council
>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 9/27/99, 9:52:16 AM, "Christopher Petrilli" <petrilli@digicool.com> wrote regarding Re: [Zope] Detecting acl username:
Michael Fox wrote:
Hi,
Is it possible to output a username once a acl user has logged in?
Example - If my login is Bill, once I enter the secure area of the site, it could say - Hi Bill
Hi <dtml-var AUTHENTICATED_USER>.
Not to tramps on our illustrious developer, but this is a bad idea... you should instead use:
<dtml-var AUTHENTICATED_USER.name>
or
<dtml-var "AUTHENTICATED_USER.getUserName()">
The reasons for this are multitudinous, but largely derived from behaviour of more advanced user mechanisms, like LDAP.
Chris -- | Christopher Petrilli Python Powered Digital Creations, Inc. | petrilli@digicool.com http://www.digicool.com
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
At 02:38 PM 9/27/99 +0000, Jens Vagelpohl wrote:
i was suggesting something similar, actually, but my suggestion failed because i could not remember what the method name is to get at the desired name. like someone else suggested (was it this morning?), what about a reference document that lists
* variables accessible from REQUEST (like AUTHENTICATED_USER and such) * methods exposed by these objects (like AUTHENTICATED_USER.getUserName())
The Zope Quick Reference (ZQR) project is attempting to do this, its at: http://www.zope.org/Member/ZQR (second time this morning) note: the .getUserName is not listed in the AUTHENTICATED_USER object, I'm working on that right now. Now, for the people DC, what is the best method to identify all the exposed methods from a given object? I think that the ZQR has ?most? of them but its hard to find the remaining ones, I come across a few every now and then, but its slow. Can I get some sort of feedback or link up with some people on the list who know about missing objects, variables, and methods. (this should happen privately or on the ZDP) TIA, David tone..
jens
Jens Vagelpohl Systems Administrator Washtenaw Development Council
participants (3)
-
Christopher Petrilli -
David Kankiewicz -
Jens Vagelpohl