25 Oct
2001
25 Oct
'01
7:42 a.m.
This follows on from my last post, I'd like to thank everyone for their help I dont get any errors now but the following still doesn't seem to work. <dtml-let user_name="AUTHENTICATED_USER" super_user="'bob'"> <dtml-var user_name><br> <dtml-if expr="user_name == super_user"> YOU ARE BOB <dtml-else> YOU ARE NOT BOB </dtml-if> </dtml-let> Output: bob
25 Oct
25 Oct
8:09 a.m.
New subject: [Zope] comparison not working
On Thursday 25 October 2001 03:42 pm, Myles Byrne wrote: you're comparing an object and a string, which will always be false. try: <dtml-let user_name="AUTHENTICATED_USER.getUserName()" super_user="'bob'"> or use the new way to get user object _.SecurityGetUser.getUserName() hth
8929
Age (days ago)
8929
Last active (days ago)
1 comments
2 participants
participants (2)
-
bak -
Myles Byrne