ui.py

changeset 18
6d8ac70c5fb9
parent 16
d0ffae5550ef
child 19
f9ce2442f14f
equal deleted inserted replaced
17:5f6aa8830cea 18:6d8ac70c5fb9
53 # Operation running 53 # Operation running
54 progress='' 54 progress=''
55 if 'progress_current' in status and 'progress_total' in status: 55 if 'progress_current' in status and 'progress_total' in status:
56 progress='%d%%' % (status.progress_current/status.progress_total) 56 progress='%d%%' % (status.progress_current/status.progress_total)
57 title="%s (running: %s%s)" % (status['name'], status['operation'], progress) 57 title="%s (running: %s%s)" % (status['name'], status['operation'], progress)
58 active=ACTIVE 58 state=ACTIVE
59 else: # status['type']=='nothing': 59 else: # status['type']=='nothing':
60 # Should be unscheduled, nothing running 60 # Should be unscheduled, nothing running
61 title=status['name'] 61 title=status['name']
62 62
63 if status['errors']: 63 if status['errors']:

mercurial