[prev in list] [next in list] [prev in thread] [next in thread]
List: python-ldap-dev
Subject: Re: MatchingRuleUse
From: Michael_Ströder <michael () stroeder ! com>
Date: 2003-03-30 15:54:12
[Download RAW message or body]
Jerry Lee wrote:
>
> I've been working with ldap.schema.models and came across a problem with
> MatchingRuleUse.
>
> suppose that:
>
> attrClass = MatchingRuleUse
> oids = self.schema.listall(attrClass)
>
> for oid in oids :
> object = self.schema.get_obj(attrClass, oid)
> if not isinstance(object, attrClass):
> print "Ooopsie!!!!!!!!!!!!!!!!!!!!!!!!!"
> print attrClass.schema_attribute + ' *** ' +
> object.schema_attribute
>
>
> What happens is I hit the 'if' for every OID.
>
> That is, the call to get_obj returns an object of class MatchingRule
> instead of MatchingRuleUse.
Please test(!) ldap.schema from CVS since I reworked it today to maintain
separate dictionaries for each schema element class.
Ciao, Michael.
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic