Xqt added a comment.
In T223713#5207327 <https://phabricator.wikimedia.org/T223713#5207327>, @Nicolas_NALLET wrote: > Just to test, I would like to edit the file pagegenerator.py > line 795 > > return self.site.wantedtemplates(total=_int_none(value)) > > > What should I write instead of > > self.site > > > to make it work ? > > Thanks GeneratorFactory class can be instantiated with the target site to retrieve wanted pages from target in line 100: gen_factory = pagegenerators.GeneratorFactory(target_site) for example. Unfortunately target_site is known after argument handling. This means pagegenerators options must be collected and passed to the gen_factory later. TASK DETAIL https://phabricator.wikimedia.org/T223713 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Nicolas_NALLET, Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, Viztor, DannyS712, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
