[Zope] Python version of a DTML thing

Aseem Mohanty aseem@neurobehavioralsystems.com
Mon, 17 Jun 2002 02:19:28 -0700


thanks. but I wanted a funtion to check if it is an authenticated or 
anonymous user, and the docs say that REQUEST.AUTHENTICATED_USER is 
insecure since it can be changed, hence I wanted a python version of 
SecurityGetUser so I could use in a python script. any pointers to that...

thanks,
AM

Charlie Reiman wrote:

>User is available as a REQUEST attribute, called AUTHENTICATED_USER. Use
><dtml-var REQUEST> to see everything under REQUEST.
>
>
>>-----Original Message-----
>>From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Aseem
>>Mohanty
>>Sent: Monday, June 17, 2002 1:48 AM
>>To: zope@zope.org
>>Subject: [Zope] Python version of a DTML thing
>>
>>
>>Hi,
>>
>>How do I do the following :
>>
>><dtml-let user="_.SecurityGetUser()">
>>
>>I mean the SecurityGetUser()
>>
>>in a PyScript??
>> ie in the script :
>>
>>user=???
>>
>>TIA
>>AM
>>
>>
>>==================================================================
>> Aseem Mohanty
>> Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706
>> (R) 510 7696011 (M) 510 3014871 (O) 510 5279231
>>============================================================
>>======
>> "I saw `cout' being shifted "Hello world" times to the left and
>>  stopped right there!!"                        -- Steve Gonedes
>>==================================================================
>>
>>
>>
>>
>>_______________________________________________
>>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 )
>>
>
>
>

-- 
==================================================================
 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
==================================================================								  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes  
==================================================================