Re: LDAP ORM

2007-10-28 Thread James Andrewartha
On Mon, 2007-10-22 at 19:22 +0200, Michael Ströder wrote: > James Andrewartha wrote: > > > > Thanks for the pointer. I've updated the code to map _ in attribute > > names to -. Attributes without a short name are impossible to wrap - I'm > > not expecting clients of this library to know OIDs. >

Re: LDAP ORM

2007-10-22 Thread Michael Ströder
James Andrewartha wrote: > > Thanks for the pointer. I've updated the code to map _ in attribute > names to -. Attributes without a short name are impossible to wrap - I'm > not expecting clients of this library to know OIDs. If you don't support schema elements without NAME you're not LDAPv3 com

Re: LDAP ORM

2007-10-22 Thread James Andrewartha
On Mon, 2007-10-22 at 16:13 +0200, Michael Ströder wrote: > James Andrewartha wrote: > > On Mon, 2007-10-22 at 15:05 +0200, Michael Ströder wrote: > >> If you're using ldap.schema you might want to look into using class > >> ldap.schema.models.Entry instead of simply ldap.cidict.cidict because > >>

Re: LDAP ORM

2007-10-22 Thread James Andrewartha
On Mon, 2007-10-22 at 07:12 -0700, Anil Jangity wrote: > I was toying with the idea of doing just this thing a few days ago. > It'll be nice if it also handles all the modifications of an entry > with ease. (changing rdn when the attributes change etc...) > > Let me know how I can help. :) Well,

Re: LDAP ORM

2007-10-22 Thread Michael Ströder
James Andrewartha wrote: > On Mon, 2007-10-22 at 15:05 +0200, Michael Ströder wrote: > >> If you're using ldap.schema you might want to look into using class >> ldap.schema.models.Entry instead of simply ldap.cidict.cidict because >> you don't have to care about attribute description aliases and m

Re: LDAP ORM

2007-10-22 Thread James Andrewartha
On Mon, 2007-10-22 at 15:05 +0200, Michael Ströder wrote: > James Andrewartha wrote: > > > > --- cidict.py~ 2003-08-25 00:28:12.0 +0800 > > +++ cidict.py 2007-10-22 20:16:54.0 +0800 > > @@ -43,6 +43,9 @@ > >def has_key(self,key): > > return UserDict.has_key(self,lower(k

Re: LDAP ORM

2007-10-22 Thread Michael Ströder
James Andrewartha wrote: > > --- cidict.py~ 2003-08-25 00:28:12.0 +0800 > +++ cidict.py 2007-10-22 20:16:54.0 +0800 > @@ -43,6 +43,9 @@ >def has_key(self,key): > return UserDict.has_key(self,lower(key)) > > + def __contains__(self,key): > +return UserDict.has_key(

LDAP ORM

2007-10-22 Thread James Andrewartha
Hi all, The current Python LDAP interface is a bit low level for my liking, so I've started work on an LDAP ORM[1]. Currently there's very little RM going on, but I have got a nice Python object representing an LDAP object with attribute access and deletion, no adding or saving to the l