[Zope] Strange String comparison problem (python script)
Uwe Schuerkamp
uwe@schuerkamp.de
Thu, 29 Aug 2002 20:11:42 +0200
On Thu, Aug 29, 2002 at 11:01:55AM -0700, Charlie Reiman wrote:
> Have you tried:
>
> if str(user) == str(context.getId()):
>
> str might not be allowed in a python script but there should be an
> alternative. Look in the zope book.
>
>
Hi Charlie,
thanks for your reply. That worked! I had only tried
if user=str(context.getId()):
but that did not work. I still wonder why "user" isn't a string... but
what the heck, this is not the first time Zope has confused me ;-)
thanks again for your help,
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