|
From: Jens V. <je...@zo...> - 2002-08-07 21:22:07
|
the problem is in the cidict class. when you call "get" then the method=20=
"get" on UserDict gets called - which has no lowercasing of the name you=20=
ask for.
jens
On Wednesday, August 7, 2002, at 04:03 , Michael Str=F6der wrote:
> Jens Vagelpohl wrote:
>> i'm trying to run the Demo/schema.py script and steppping through it=20=
>> with pdb there's an oddity i see, which prevents the script from =
running=20
>> successfully:
>> - ldapobject.py line 548 (in method search_subschemasubentry) a =
search=20
>> is done on the passed-in DN to retrieve the value for the attribute=20=
>> "subschemaSubentry". the search is successful and returns...
>> [('dc=3Dvts,dc=3Dzope,dc=3Dcom', {'subschemaSubentry': =
['cn=3DSubschema']})]
>> - in line 555 there is the following call:
>> e =3D ldap.cidict.cidict(r[0][1]) (r is the result shown above)
>> - at this point "e" has the following value:
>> {'subschemasubentry': ['cn=3DSubschema']} (notice: =
"subschemasubentry" is=20
>> all lowercase now)
>> - now the problem is in line 556 in the call...
>> search_subschemasubentry_dn =3D e.get('subschemaSubentry', [None])[]
>
> Yes, no problem since ldap.cidict.cidict is used. I wouldn't claim =
that=20
> there is no bug. But I can't see a problem.
>
>> ... at this point the result is None and the script dies a little =
later.
>
> "Dies a little later" is a little bit unspecific. Can you please =
provide=20
> the traceback and mention which LDAP server you're using for testing?
>
> Ciao, Michael.
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Python-LDAP-dev mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
|