[Zope] Strange String comparison problem (python script)

Uwe Schuerkamp uwe@schuerkamp.de
Thu, 29 Aug 2002 19:48:07 +0200


Hi folks, 

this is my python script: 

request=context.REQUEST
user=request['AUTHENTICATED_USER']

print "user: ", user, "<br>"
print "container", container.getId(), "<br>"
print "context: ", context.getId(), "<br>"



if user == context.getId():
    print "names match, upload ok"
else:
    print "username does not  match context id"


the if conditional *always* fails, even when username and context id
are the same (here's the return printed output): 

user:  udo
container gallery
context:  udo
username does not  match context id


??? Can someone please shed some light what I am doing wrong? 

Version is Zope 2.5.1/Python 2.1.3 on Linux Mandrake 8.2

Cheers & thanks much in advance, 

Uwe  

-- 
Uwe Schuerkamp    http://www.schuerkamp.de/
GnuPG Fingerprint:  2093 20B8 B861 9358 A356  B01A E145 9249 5D27 33EA
PGP Fingerprint:  2E 13 20 22 9A 3F 63 7F  67 6F E9 B1 A8 36 A4 61