ldap.schema.models bugs?
Michael Ströder
michael at stroeder.com
Sat Mar 22 14:38:29 CET 2003
Jerry,
good catches. Your fixes are committed into CVS. Thanks for taking the time
to report the bugs.
And glad to see that someone is using ldap.schema...
I couldn't get hold of a sub schema sub entry with nameForms,
matchingRuleUse and so on. Therefore I'd appreciate to receive test data as
LDIF. Ideally if you know a public LDAP server with those attributes set
please let me know.
Ciao, Michael.
Jerry Lee wrote:
>
> I've been using your schema code and I came across the following in
> models.py
>
> line 337:
>
> schema_attribute = 'matchingRuleUses'
>
> should read
>
> schema_attribute = 'matchingRuleUse'
>
> and
>
> line 352:
>
> assert type(self.obsolete)==type(0) and (type(self.obsolete)==0 or
> type(self.obsolete)==1)
>
> should read
>
> assert type(self.obsolete)==type(0) and (self.obsolete==0 or
> self.obsolete==1)
>
>
> I'm not too sure on the second one - I don't really understand it.
> However I was getting errors before the change and so I just copied the
> line from the _set_attrs section of MatchinRule and I don't get errors
> anymore.
>
> Thanks for your efforts!
>
> Jerry.
More information about the python-ldap
mailing list