[Zope] comparing variables ??

Michel Pelletier michel@digicool.com
Tue, 14 Dec 1999 12:38:57 -0500


> -----Original Message-----
> From: Greg Ward [mailto:gward@cnri.reston.va.us]
> > AUTHENTICATED_USER.getUserName() is what you're looking for here.
> 
> Or, if you don't happen to know the name of the method, you 
> can just use
> the standard Python function for getting an object's string
> representation.  In straight Python, this would be
> 
>   str (AUTHENTICATED_USER)
> 
> but in DTML's bastard offshoot of Python, it's
> 
>   _.str (AUTHENTICATED_USER)

It's probably a better idea for future compatability to use the API and
call getUserName.

-Michel