Encodage
darcs-hash:20050313023832-41617-6db90ed10428dfedec7166c7e2b6aa55a00db0ff.gz
This commit is contained in:
parent
86b21f7639
commit
0ec0fdfbc5
1 changed files with 4 additions and 4 deletions
|
@ -369,7 +369,7 @@ class crans_ldap :
|
|||
avec les arguments args (args doit être une liste).
|
||||
Si new est founi et ne comence par - supprime le service de la liste
|
||||
"""
|
||||
|
||||
if new : new = preattr(new)[1]
|
||||
if new and new[0] == '-' :
|
||||
serv_dn = 'cn=%s,%s' % ( new[1:], self.base_services )
|
||||
try : self.conn.delete_s(serv_dn)
|
||||
|
@ -391,7 +391,7 @@ class crans_ldap :
|
|||
def tr(arg) :
|
||||
return preattr(arg)[1]
|
||||
args=map(tr,args)
|
||||
|
||||
|
||||
if new in serv.keys() :
|
||||
new_args = []
|
||||
for arg in args :
|
||||
|
@ -828,7 +828,7 @@ class base_classes_crans(crans_ldap) :
|
|||
else :
|
||||
# Nouvelle entrée
|
||||
# NE PAS UTILISER L'OPERATEUR += ICI sinon self._init_data aussi modififié
|
||||
self._data['historique'] = self._data['historique'] + [ "%s : %s" % ( hist, modif ) ]
|
||||
self._data['historique'] = self._data['historique'] + [ preattr("%s : %s" % ( hist, modif ))[1] ]
|
||||
except:
|
||||
# Nouvelle inscription
|
||||
self._data['historique'] = [ "%s : %s" % ( hist, modif ) ]
|
||||
|
@ -1126,7 +1126,7 @@ class base_proprietaire(base_classes_crans) :
|
|||
|
||||
if 'paiement+%s' % ann_scol in self.modifs \
|
||||
or 'paiement-%s' % ann_scol in self.modifs \
|
||||
or ( bl_carte_et_definitif and test_carte ) :
|
||||
or ( config.bl_carte_et_definitif and test_carte ) :
|
||||
for m in self.machines() :
|
||||
self.services_to_restart('firewall',[m.ip()] )
|
||||
self.services_to_restart('firewall-komaz',[m.ip()] )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue