r50525 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50524‎ | r50525 | r50526 >
Date:17:49, 12 May 2009
Author:tomasz
Status:deferred
Tags:
Comment:
adding filze size progression
Modified paths:
  • /trunk/backup/worker.py (modified) (history)

Diff [purge]

Index: trunk/backup/worker.py
@@ -444,7 +444,10 @@
445445
446446 def reportFile(self, file, status):
447447 filepath = self.publicPath(file)
448 - if status == "done" and exists(filepath):
 448+ if status == "in-progress" and exists (filepath):
 449+ size = prettySize(getsize(filepath))
 450+ return "<li class='file'>%s %s (written) </li>" % (file, size)
 451+ elif status == "done" and exists(filepath):
449452 size = prettySize(getsize(filepath))
450453 webpath = self.webPath(file)
451454 return "<li class='file'><a href=\"%s\">%s</a> %s</li>" % (webpath, file, size)

Status & tagging log