repr ne retourne rien d'encodé
This commit is contained in:
parent
f988e962c9
commit
6c1dc6c587
1 changed files with 8 additions and 8 deletions
16
objets.py
16
objets.py
|
@ -852,7 +852,7 @@ class InetOrgPerson(CransLdapObject):
|
||||||
return u"%s : cn=%s" % (self.__class__.__name__, self['cn'][0])
|
return u"%s : cn=%s" % (self.__class__.__name__, self['cn'][0])
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return repr(self.__unicode__())
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class proprio(CransLdapObject):
|
class proprio(CransLdapObject):
|
||||||
|
@ -896,7 +896,7 @@ class proprio(CransLdapObject):
|
||||||
return u"%s : nom=%s" % (self.__class__.__name__, self['nom'][0])
|
return u"%s : nom=%s" % (self.__class__.__name__, self['nom'][0])
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return repr(self.__unicode__())
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(proprio, self).__init__(*args, **kwargs)
|
super(proprio, self).__init__(*args, **kwargs)
|
||||||
|
@ -1176,7 +1176,7 @@ class machine(CransLdapObject):
|
||||||
return u"%s : host=%s" % (self.__class__.__name__, self['host'][0])
|
return u"%s : host=%s" % (self.__class__.__name__, self['host'][0])
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return repr(self.__unicode__())
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(machine, self).__init__(*args, **kwargs)
|
super(machine, self).__init__(*args, **kwargs)
|
||||||
|
@ -1358,7 +1358,7 @@ class AssociationCrans(proprio):
|
||||||
return u"Le Crans"
|
return u"Le Crans"
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return repr(self.__unicode__())
|
||||||
|
|
||||||
class BaseInvites(proprio):
|
class BaseInvites(proprio):
|
||||||
u"""Un artefact de la base ldap"""
|
u"""Un artefact de la base ldap"""
|
||||||
|
@ -1367,7 +1367,7 @@ class BaseInvites(proprio):
|
||||||
return u"%s" % (self.__class__.__name__,)
|
return u"%s" % (self.__class__.__name__,)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return repr(self.__unicode__())
|
||||||
|
|
||||||
def delete(self, comm, login):
|
def delete(self, comm, login):
|
||||||
raise EnvironmentError("Les pauvres invites")
|
raise EnvironmentError("Les pauvres invites")
|
||||||
|
@ -1391,7 +1391,7 @@ class adherent(proprio):
|
||||||
return u"Adhérent : %s %s" % (self['prenom'][0], self['nom'][0])
|
return u"Adhérent : %s %s" % (self['prenom'][0], self['nom'][0])
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return repr(self.__unicode__())
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(adherent, self).__init__(*args, **kwargs)
|
super(adherent, self).__init__(*args, **kwargs)
|
||||||
|
@ -1438,7 +1438,7 @@ class club(proprio):
|
||||||
return u"Club : %s" % (self['nom'][0],)
|
return u"Club : %s" % (self['nom'][0],)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return repr(self.__unicode__())
|
||||||
|
|
||||||
@crans_object
|
@crans_object
|
||||||
class machineFixe(machine):
|
class machineFixe(machine):
|
||||||
|
@ -1534,7 +1534,7 @@ class facture(CransLdapObject):
|
||||||
return u"Facture : fid=%s" % (self['fid'][0],)
|
return u"Facture : fid=%s" % (self['fid'][0],)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return repr(self.__unicode__())
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self._proprio = None
|
self._proprio = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue