# HG changeset patch # User Alexandre Fayolle # Date 1257421335 -3600 # Node ID af9b0e113108bbb5e099ea1f41d8972fe785d255 # Parent f4e924106fdc56cc8a85a9898e721ff73e26527d style: s/pourcent/percent/ diff -r f4e924106fdc -r af9b0e113108 web/htmlwidgets.py --- a/web/htmlwidgets.py Thu Nov 05 12:41:58 2009 +0100 +++ b/web/htmlwidgets.py Thu Nov 05 12:42:15 2009 +0100 @@ -335,20 +335,20 @@ def _render(self): try: - pourcent = self.done*100./self.total + percent = self.done*100./self.total except ZeroDivisionError: - pourcent = 0 - real_pourcent = pourcent - if pourcent > 100 : + percent = 0 + real_percent = percent + if percent > 100 : color = 'done' - pourcent = 100 + percent = 100 elif self.todo + self.done > self.total : color = 'overpassed' else: color = 'inprogress' - if pourcent < 0: - pourcent = 0 - self.w(u'
' % real_pourcent) - self.w(u'
' % (color, pourcent)) + if percent < 0: + percent = 0 + self.w(u'
' % real_percent) + self.w(u'
' % (color, percent)) self.w(u'
')