Petite mise jour tools
Pseudo-rparation des scripts dans /usr/scripts/gestion/tools/ darcs-hash:20071211003807-ddb99-4670b17b63d914f1c06f84612aecdb3b9bb909f0.gz
This commit is contained in:
parent
3e269dbbfc
commit
a1a9308602
5 changed files with 9 additions and 9 deletions
|
@ -4,7 +4,7 @@
|
|||
import sys
|
||||
sys.path.append('/usr/scripts/gestion')
|
||||
|
||||
from ldap_crans import crans_ldap, decode, crans
|
||||
from ldap_crans import crans_ldap, decode
|
||||
|
||||
db = crans_ldap()
|
||||
machines = db.search('exempt=*')['machine']
|
||||
|
@ -15,7 +15,7 @@ for m in machines :
|
|||
|
||||
# texte pour la machine
|
||||
txt = u''
|
||||
txt += u'Propriétaire : %s\n' % m.proprietaire().Nom().encode('iso-8859-1')
|
||||
txt += u'Propriétaire : %s\n' % m.proprietaire().Nom()
|
||||
txt += u'Machine : %s\n' % m.nom()
|
||||
txt += u'destination : %s\n' % ', '.join(m.exempt())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue