style: s/pourcent/percent/ stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Thu, 05 Nov 2009 12:42:15 +0100
branchstable
changeset 3797 af9b0e113108
parent 3796 f4e924106fdc
child 3798 d2c27621cc81
style: s/pourcent/percent/
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'<div class="progressbarback" title="%i %%">' % real_pourcent)
-        self.w(u'<div class="progressbar %s" style="width: %spx; align: left;" ></div>' % (color, pourcent))
+        if percent < 0:
+            percent = 0
+        self.w(u'<div class="progressbarback" title="%i %%">' % real_percent)
+        self.w(u'<div class="progressbar %s" style="width: %spx; align: left;" ></div>' % (color, percent))
         self.w(u'</div>')