Index: trunk/backup/worker.py |
— | — | @@ -61,6 +61,8 @@ |
62 | 62 | self.wiki = wiki |
63 | 63 | self.config = wiki.config |
64 | 64 | self.dbName = wiki.dbName |
| 65 | + self.prefetch = prefetch |
| 66 | + self.spawn = spawn |
65 | 67 | |
66 | 68 | if date: |
67 | 69 | # Override, continuing a past dump? |
— | — | @@ -248,10 +250,10 @@ |
249 | 251 | XmlStub("First-pass for page XML data dumps"), |
250 | 252 | XmlDump("articles", |
251 | 253 | "<big><b>Articles, templates, image descriptions, and primary meta-pages.</b></big>", |
252 | | - "This contains current versions of article content, and is the archive most mirror sites will probably want.", prefetch, spawn), |
| 254 | + "This contains current versions of article content, and is the archive most mirror sites will probably want.", self.prefetch, self.spawn), |
253 | 255 | XmlDump("meta-current", |
254 | 256 | "All pages, current versions only.", |
255 | | - "Discussion and user pages are included in this complete archive. Most mirrors won't want this extra material.", prefetch, spawn), |
| 257 | + "Discussion and user pages are included in this complete archive. Most mirrors won't want this extra material.", self.prefetch, self.spawn), |
256 | 258 | XmlLogging("Pull out all logging data")] |
257 | 259 | if self.wiki.hasFlaggedRevs(): |
258 | 260 | self.items.append( |
— | — | @@ -264,7 +266,7 @@ |
265 | 267 | BigXmlDump("meta-history", |
266 | 268 | "All pages with complete page edit history (.bz2)", |
267 | 269 | "These dumps can be *very* large, uncompressing up to 20 times the archive download size. " + |
268 | | - "Suitable for archival and statistical use, most mirror sites won't want or need this.", prefetch, spawn)) |
| 270 | + "Suitable for archival and statistical use, most mirror sites won't want or need this.", self.prefetch, self.spawn)) |
269 | 271 | self.items.append( |
270 | 272 | XmlRecompressDump("meta-history", |
271 | 273 | "All pages with complete edit history (.7z)", |