pere_prlpz created this task.
pere_prlpz added a subscriber: pere_prlpz.
pere_prlpz added projects: pywikibot-compat, pywikibot-core.
TASK DESCRIPTION
noreferences.py has parameters for a lot of wikipedias but it lacks parameters for cawiki, and it causes some tools to malfunction. I've coded the parameters at https://ca.wikipedia.org/wiki/Usuari:Pere_prlpz/noreferences.py and they need to be included in the program.
Since the code is quite short, I copy it here, too:
#placeBeforeSections
'ca': [
u'Bibliografia',
u'Bibliografia complementària',
u'Vegeu també',
u'Enllaços externs',
u'Enllaços'
],
#referencesSections
'ca': [
u'Referències'
],
#referencesTemplates
'ca': [u'Referències', u'Reflist', u'Listaref', u'Referència',
u'Referencies', u'Referències2',
u'Amaga', u'Amaga ref', u'Amaga Ref', u'Amaga Ref2', u'Apèndix'],
TASK DETAIL
https://phabricator.wikimedia.org/T85268
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: pere_prlpz
Cc: Aklapper, pere_prlpz, jayvdb, pywikipedia-bugs
Xqt created this task.
Xqt claimed this task.
Xqt added a subscriber: Xqt.
Xqt added a project: pywikibot-redirect.py.
TASK DESCRIPTION
That exception should be handled:
....................................Traceback (most recent call last):
File "C:\pwb\core\pwb.py", line 222, in <module>
run_python_file(filename, argv, argvu, file_package)
File "C:\pwb\core\pwb.py", line 81, in run_python_file
main_mod.__dict__)
File ".\scripts\redirect.py", line 817, in <module>
main()
File ".\scripts\redirect.py", line 814, in main
bot.run()
File ".\scripts\redirect.py", line 713, in run
self.fix_double_redirects()
File ".\scripts\redirect.py", line 520, in fix_double_redirects
for redir_name in self.generator.retrieve_double_redirects():
File ".\scripts\redirect.py", line 297, in retrieve_double_redirects
for redir_page in gen:
File ".\scripts\redirect.py", line 358, in get_moved_pages_redirects
redirectsOnly=True):
File "C:\pwb\core\pywikibot\page.py", line 836, in getReferences
content=content
File "C:\pwb\core\pywikibot\site.py", line 2829, in pagereferences
namespaces=namespaces, step=step, content=content),
File "C:\pwb\core\pywikibot\site.py", line 2762, in pagebacklinks
if redir.getRedirectTarget() == page:
File "C:\pwb\core\pywikibot\page.py", line 1363, in getRedirectTarget
return self.site.getredirtarget(self)
File "C:\pwb\core\pywikibot\site.py", line 2513, in getredirtarget
raise InterwikiRedirectPage(page, target)
pywikibot.exceptions.InterwikiRedirectPage: Page redirects to a page on another
Site.
Page: [[lt:Naudotojo aptarimas:Nightstallion]]
Target page: [[en:User talk:Nightstallion]] on wikipedia:en.
<class 'pywikibot.exceptions.InterwikiRedirectPage'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
TASK DETAIL
https://phabricator.wikimedia.org/T85589
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikipedia-bugs
jayvdb added a comment.
In https://phabricator.wikimedia.org/T67192#952198, @Daviskr wrote:
> > To restrict the date, add an EdittimeFilterPageGenerator after calling getCombinedGenerator.
>
>
> If `start` and `end` were added to `LogeventsPageGenerator` wouldn't it cost less calls to the API using those parameters instead of `EdittimeFilterPageGenerator`?
yes ;-)
TASK DETAIL
https://phabricator.wikimedia.org/T67192
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: pywikipedia-bugs, valhallasw, Multichill, Ricordisamoa, jayvdb, Liuxinyu970226, Daviskr
jayvdb created this task.
jayvdb added subscribers: Aklapper, pywikipedia-bugs, jayvdb.
jayvdb added projects: Pywikibot-tests, Pywikibot-pagegenerators.
TASK DESCRIPTION
Tests are needed for YearPageGenerator and DayPageGenerator - these should be subclasses of DefaultSiteTestCase , and run on all travis build sites (test.wikidata, en.wp, ar.wp and fr.wikt - https://travis-ci.org/wikimedia/pywikibot-core/builds), and also be tested on the production wikidata site.
It is __very__ likely that these generators will not work as expected on non-Wikipedia sites, as https://fr.wiktionary.org/wiki/2010 and https://en.wiktionary.org/wiki/2010 do not exist, and Wikidata is very different and the date module has not been updated since Wikidata was created. These tests should identify these bugs, so that they can be fixed.
TASK DETAIL
https://phabricator.wikimedia.org/T85313
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs
Daviskr added a comment.
> To restrict the date, add an EdittimeFilterPageGenerator after calling getCombinedGenerator.
If `start` and `end` were added to `LogeventsPageGenerator` wouldn't it cost less calls to the API using those parameters instead of `EdittimeFilterPageGenerator`?
TASK DETAIL
https://phabricator.wikimedia.org/T67192
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Daviskr
Cc: pywikipedia-bugs, valhallasw, Multichill, Ricordisamoa, jayvdb, Liuxinyu970226, Daviskr
Unicornisaurous created this task.
Unicornisaurous added a subscriber: Unicornisaurous.
Unicornisaurous added a project: pywikibot-core.
TASK DESCRIPTION
There is no `YearBC` or `YearAD` format for the language `ar`, for example.
TASK DETAIL
https://phabricator.wikimedia.org/T85681
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Unicornisaurous
Cc: Aklapper, Unicornisaurous, jayvdb, pywikipedia-bugs