unicode !!!!
darcs-hash:20051101180920-41617-c062120c542e0719cd8bb5001075f5ed77ac315e.gz
This commit is contained in:
parent
8002a00f48
commit
0cd4ddc06d
3 changed files with 7 additions and 8 deletions
|
@ -33,7 +33,7 @@ if len(adh) != 1 :
|
|||
sys.exit(3)
|
||||
|
||||
adh = adh[0]
|
||||
shell = prompt('Nouveau shell :')
|
||||
shell = prompt(u'Nouveau shell :')
|
||||
fd=open('/etc/shells')
|
||||
lines=fd.readlines()
|
||||
fd.close()
|
||||
|
|
|
@ -735,7 +735,7 @@ def confirm(clas) :
|
|||
return 1
|
||||
|
||||
print res
|
||||
affich_tools.prompt("Appuyez sur ENTREE pour continuer")
|
||||
affich_tools.prompt(u"Appuyez sur ENTREE pour continuer")
|
||||
|
||||
def set_blackliste(clas) :
|
||||
""" Edite ou ajoute un item de la blackliste """
|
||||
|
@ -1552,8 +1552,7 @@ def select(clas,quoi,mde='') :
|
|||
choix = None
|
||||
print "Plusieurs réponses correspondant à votre requête ont été trouvées :"
|
||||
aff(valid)
|
||||
txt = u'Votre choix ? (0 pour annuler) %sid =' % quoi
|
||||
i = affich_tools.prompt(txt.encode('iso-8859-15'))
|
||||
i = affich_tools.prompt(u'Votre choix ? (0 pour annuler) %sid =' % quoi)
|
||||
if i == '0' : break
|
||||
for v in valid :
|
||||
if v.id() == i :
|
||||
|
|
|
@ -58,7 +58,7 @@ def restore_adher(adh) :
|
|||
if adh.compte() and mailexist(adh.compte()) :
|
||||
print "AVERTISSEMENT : le login %s à déja été réattribué." % adh.compte()
|
||||
print " il faudra recréer un compte avec un login différent"
|
||||
prompt('Appuyez sur ENTREE pour continuer')
|
||||
prompt(u'Appuyez sur ENTREE pour continuer')
|
||||
adh._data['mail'] = []
|
||||
modif_adher(adh)
|
||||
|
||||
|
@ -66,10 +66,10 @@ def restore_machine(machine) :
|
|||
try :
|
||||
obj.proprio # crash si l'adhérent est encore dans la base
|
||||
# L'adhérent est plus dans la base
|
||||
t = prompt("Ratacher la machine à un [C]lub ou un [A]dhérent ?")
|
||||
t = prompt(u"Ratacher la machine à un [C]lub ou un [A]dhérent ?")
|
||||
t = t.lower()
|
||||
if t in 'ac' :
|
||||
i = prompt("Entrez l'%sid auquel ratacher la machine : %sid =" % (t,t) )
|
||||
i = prompt(u"Entrez l'%sid auquel ratacher la machine : %sid =" % (t,t) )
|
||||
machine.dn = '%sid=%s,%s' % (t, i, machine.dn.split(',',1)[1] )
|
||||
except :
|
||||
pass
|
||||
|
@ -79,7 +79,7 @@ def restore_club(club) :
|
|||
modif_club(club)
|
||||
|
||||
# Restauration ?
|
||||
q = prompt('Restaurer cette entrée ? [O/N]')
|
||||
q = prompt(u'Restaurer cette entrée ? [O/N]')
|
||||
if q not in 'oO' :
|
||||
sys.exit(0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue