[ldap_crans] On évite de crasher deconnexion.py en blacklistant un proprio virtuel
Ignore-this: 9ac3bbd14d07b08ac6f844667952fe77 darcs-hash:20111005075653-108b1-ecbcbfb2b35d5a240952bd48bcdbb3528b7497b6.gz
This commit is contained in:
parent
35d59ce91d
commit
19e9a48208
1 changed files with 9 additions and 1 deletions
|
@ -3804,7 +3804,15 @@ class _FakeProprio(CransLdap):
|
||||||
self.dn = self.base_dn
|
self.dn = self.base_dn
|
||||||
def id(self):
|
def id(self):
|
||||||
return ''
|
return ''
|
||||||
def blacklist(self):
|
def blacklist(self, new=None):
|
||||||
|
if new is not None:
|
||||||
|
print >>sys.stderr, u"Tentative d'ajout de blacklist à un propriétaire virtuel :"
|
||||||
|
try:
|
||||||
|
print >>sys.stderr, u"Nom : %s" % self.Nom()
|
||||||
|
except AttributeError:
|
||||||
|
print >>sys.stderr, u"Impossible de récupérer le nom..."
|
||||||
|
print >>sys.stderr, u"Blacklist :"
|
||||||
|
print >>sys.stderr, blacklist
|
||||||
return []
|
return []
|
||||||
def paiement(self):
|
def paiement(self):
|
||||||
return [ ann_scol ]
|
return [ ann_scol ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue