Encodage de la sortie de commands.getoutput
darcs-hash:20051025084631-d1718-b349c32a28c73525724209b2fbe396438639a147.gz
This commit is contained in:
parent
82cd748dcd
commit
9d8d17dd63
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ def execute(macro, text) :
|
|||
line = line.split(' ')
|
||||
code += f.table_row(1)
|
||||
code += f.table_cell(1,{'style':'background-color:silver'})
|
||||
code += f.text('%s (%s)' % (line [0], getoutput("grep '^%s' /etc/autostatus/hosts | cut -d ' ' -f 5-" % line [0])) )
|
||||
code += unicode(f.text('%s (%s)' % (line [0], getoutput("grep '^%s' /etc/autostatus/hosts | cut -d ' ' -f 5-" % line [0])) ), "iso-8859-15")
|
||||
code += f.table_cell(0)
|
||||
# nombre de non réponse au ping
|
||||
if int(line[1]) > 2 :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue