[Zope] Python version of a DTML thing
Janko Hauser
jhauser@ifm.uni-kiel.de
Mon, 17 Jun 2002 23:46:39 +0200
On Mon, 17 Jun 2002 01:47:30 -0700
Aseem Mohanty <aseem@neurobehavioralsystems.com> wrote:
> Hi,
>
> How do I do the following :
>
> <dtml-let user="_.SecurityGetUser()">
>
> I mean the SecurityGetUser()
>
This is a function defined in the DTML module.
To get the user in a PythonScript one can use
print request.AUTHENTICATED_USER.getUserName()
HTH,
__Janko
--
i.A. Dr. Janko Hauser
Software Engineering
c o m . u n i t G m b H
online-schmiede seit 1994
http://www.comunit.de/ mailto:jh@comunit.de
Eiffestr. 598 20537 Hamburg | Germany
Fon 040 | 21 11 05 25 Fax 040 | 21 11 05 26