使用ldapom管理模型的基类。
ldapom-model的Python项目详细描述
#ldapom模型
>提供基类ldapmodel的ldapmodel的ldapmodel的ldapmodel的ldapmodel的ldapmodel的ldapmodel的ldapom的ldapom模型创建模型使用[ldapom(https://pypi.python.org/pypi/ldapom/0.11.0.0.0.
class='ineetorgorgperson(ldapmodel ldapmodel,ldapapapmodel
'
_类属性={'cn':ldapattr('cn'),
'o':ldapattr('o'),
'mail':ldapattr('mail'),
'lastname':ldapattr('sn'),
'firstname':ldapattr('givenname'),
'phone':ldapattr('telephonenumber'),
“地址”:ldapattr('postaladdress')}
rdn='cn'
def\uu str\uu(self):
返回self.name
@property
def name(self):
返回'。加入([self.givenname,self.sn])如果self.givenname else self.sn
,然后:
“toto”)
toto.mail=“toto@example.net”
toto.firstname=“foo”
toto.save()
你他妈的想怎么做就怎么做。
>提供基类ldapmodel的ldapmodel的ldapmodel的ldapmodel的ldapmodel的ldapmodel的ldapmodel的ldapom的ldapom模型创建模型使用[ldapom(https://pypi.python.org/pypi/ldapom/0.11.0.0.0.
class='ineetorgorgperson(ldapmodel ldapmodel,ldapapapmodel
'
_类属性={'cn':ldapattr('cn'),
'o':ldapattr('o'),
'mail':ldapattr('mail'),
'lastname':ldapattr('sn'),
'firstname':ldapattr('givenname'),
'phone':ldapattr('telephonenumber'),
“地址”:ldapattr('postaladdress')}
rdn='cn'
def\uu str\uu(self):
返回self.name
@property
def name(self):
返回'。加入([self.givenname,self.sn])如果self.givenname else self.sn
,然后:
“toto”)
toto.mail=“toto@example.net”
toto.firstname=“foo”
toto.save()
你他妈的想怎么做就怎么做。