[ldap_crans] On encode les messages d'erreur à la main
Ignore-this: e775cfbf40d8c1ec1f37822385211434 darcs-hash:20111128191035-108b1-198324bbcbbb34fe56b7bc8c7ea5c47ee3fba51f.gz
This commit is contained in:
parent
a84edd327c
commit
4c8be32f53
2 changed files with 4 additions and 4 deletions
|
@ -3810,11 +3810,11 @@ class _FakeProprio(CransLdap):
|
||||||
return ''
|
return ''
|
||||||
def blacklist(self, new=None):
|
def blacklist(self, new=None):
|
||||||
if new is not None:
|
if new is not None:
|
||||||
print >>sys.stderr, u"Tentative d'ajout de blacklist à un propriétaire virtuel :"
|
print >>sys.stderr, u"Tentative d'ajout de blacklist à un propriétaire virtuel :".encode(sys.stderr.encoding)
|
||||||
try:
|
try:
|
||||||
print >>sys.stderr, u"Nom : %s" % self.Nom()
|
print >>sys.stderr, (u"Nom : %s" % self.Nom()).encode(sys.stderr.encoding)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
print >>sys.stderr, u"Impossible de récupérer le nom..."
|
print >>sys.stderr, u"Impossible de récupérer le nom...".encode(sys.stderr.encoding)
|
||||||
print >>sys.stderr, u"Blacklist :"
|
print >>sys.stderr, u"Blacklist :"
|
||||||
print >>sys.stderr, new
|
print >>sys.stderr, new
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue