r12935 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12934‎ | r12935 | r12936 >
Date:07:22, 2 February 2006
Author:vibber
Status:old
Tags:
Comment:
Give the wrapper script a chance to pass a subset of wikis to dump, for filling in errors
Modified paths:
  • /trunk/backup/WikiBackup.py (modified) (history)

Diff [purge]

Index: trunk/backup/WikiBackup.py
@@ -140,10 +140,14 @@
141141
142142 """Public methods for the manager script..."""
143143
144 - def run(self):
 144+ def run(self, subset=[]):
145145 """Iterate through the list of wikis and dump them!"""
146146 self.debug("Starting dump...")
147 - for db in self.dblist:
 147+ if subset:
 148+ runset = subset
 149+ else:
 150+ runset = self.dblist
 151+ for db in runset:
148152 self.db = db
149153 self.date = today()
150154 self.failcount = 0

Status & tagging log