[Zope] Logic-defying bug with LDAP method

Hannu Krosing hannu@tm.ee
Thu, 03 Feb 2000 11:44:56 +0200


Dennis Moore wrote:
> 
> I've got an LDAP method called 'getuser' which simply returns all the
> information for a particular userid.  This part seems to work ok.  I am
> having a really weird problem with trying to use the information I get from
> it, though:
> 
> <dtml-call "REQUEST.set('userid', 'someone')">
> 
> <dtml-in getuser>
> <dtml-call "REQUEST.set('foo', departmentnumber)">
> </dtml-in>
> 
> <dtml-if  "foo == 'RU168'">

try  "_.str(foo) == 'RU168'"

foo is probably something that is 'RU168' after converting to string.
This conversion is done automatically on output but not when comparing

---------------
Hannu