Commit 4b7baf16 authored by Remi Oudin's avatar Remi Oudin

Réparation des changements de shell

parent 493e8075
......@@ -334,7 +334,7 @@ Repasser le solde à 0€ pour supprimer le compte.""" % proprio.get('solde', [0
'badPassSh' : [a.nounou],
'disconnect_shell':[a.nounou],
}
shell = os.path.basename(proprio['loginShell'][0]).lower()
shell = os.path.basename(unicode(proprio['loginShell'][0])).lower()
shells = config.shells_gest_crans
shells_order = config.shells_gest_crans_order
def box():
......@@ -351,8 +351,8 @@ Repasser le solde à 0€ pour supprimer le compte.""" % proprio.get('solde', [0
choices = [
(
unicode(s),
unicode(shells[s]['desc']),
1 if s == shell else 0
shells[s]['desc'].decode('utf-8'),
1 if unicode(s) == shell else 0
) for s in editable_sheels
]
return self.dialog.radiolist(
......@@ -397,7 +397,7 @@ Repasser le solde à 0€ pour supprimer le compte.""" % proprio.get('solde', [0
choices_values=[
(
unicode(s),
unicode(shells[s]['desc']),
shells[s]['desc'].decode('utf-8'),
1 if s == output else 0
) for s in shells_order
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment