|
From: Jens V. <je...@zo...> - 2002-08-07 19:50:52
|
i'm trying to run the Demo/schema.py script and steppping through it =
with=20
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 =
is=20
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])[] =20
(notice: it expects camelcase again...)
... at this point the result is None and the script dies a little later.
jens
On Friday, August 2, 2002, at 10:23 , Michael Str=F6der wrote:
> Dear list members,
>
> please review the schema API in Lib/ldap/schema.py. There's also a =
demo=20
> script Demo/schema.py.
>
> I've tested it with OpenLDAP 2.0.x and 2.1.x, an Innosoft server and =
some=20
> Siemens Dir/X servers I found. It still chokes on Netscape/iPlanet/Sun=20=
> Directory Servers etc. with non-numeric "OID" but now with a nice=20
> exception.
>
> Up to now I only addressed the issues with finding the mandantory and=20=
> optional attribute types to a given list of object classes. It's still=20=
> far away from being a complete schema support.
>
> Please comment!
>
> 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
|