John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/179616
Change subject: Use both pagegenerators and local generator
......................................................................
Use both pagegenerators and local generator
When the script has a local generator, it can be inserted at the
beginning of the list of generators used by the generator factory.
This is especially useful so that filters may be applied to the
script supplied generator.
Change-Id: I492673ce69c77df9ed697271c7c7e8a9c6fc055d
---
M scripts/imageuncat.py
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/16/179616/1
diff --git a/scripts/imageuncat.py b/scripts/imageuncat.py
index 581eae9..acc6087 100755
--- a/scripts/imageuncat.py
+++ b/scripts/imageuncat.py
@@ -1343,8 +1343,8 @@
generator = recentChanges(site=site, delay=120)
else:
genFactory.handleArg(arg)
- if not generator:
- generator = genFactory.getCombinedGenerator()
+
+ generator = genFactory.getCombinedGenerator(gen=generator)
if not generator:
pywikibot.output(
u'You have to specify the generator you want to use for the
program!')
--
To view, visit https://gerrit.wikimedia.org/r/179616
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I492673ce69c77df9ed697271c7c7e8a9c6fc055d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits