Page MenuHomePhabricator

Port parserfunctioncount.py to core
Closed, ResolvedPublic

Description


Version: core-(2.0)
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:16 AM
bzimport set Reference to bz64878.
bzimport added a subscriber: Unknown Object (????).

For implementing this in core, instead of using docregex in the compat script, there is a variable in each core Family class 'doc_subpages' which should be used.

jayvdb set Security to None.
jayvdb removed a subscriber: Unknown Object (????).

In core/family.py class Family couldn't find 'doc_subpages'. In compat documentsubpage variable is defined though.

In core/family.py class Family couldn't find 'doc_subpages'. In compat documentsubpage variable is defined though.

You'll find the relevant code using $ git grep doc_subpages

Change 181724 had a related patch set uploaded (by Prianka):
T66878 Port parserfunctioncount.py to core

https://gerrit.wikimedia.org/r/181724

Patch-For-Review

Change 181724 had a related patch set uploaded (by Prianka):
Porting parsefunctioncount.py from compat to core/scripts

https://gerrit.wikimedia.org/r/181724

Patch-For-Review

Has Prianka got a Phabricator account?

Sorry :)
You should maybe connect your MediaWiki account.

Sorry for inconvenience though. I initially created this one and it seems to be a bad idea to create a new account in between.. neither i can find name change option :/ so i guess need go with this ..

https://phabricator.wikimedia.org/settings/panel/external/ should have an option to connect your MediaWiki account in addition to LDAP.

Seems to have some trouble in that, despite me having account in all the projects as demanded .. "Application Connection Error"

Then you should either ask the supporters of Phabricator or open a bug report.

As per the latest patch that is submitted at gerrit, I get corresponding error while testing : output. Please suggest me what might be done to mend it.

As per the latest patch that is submitted at gerrit, I get corresponding error while testing : output. Please suggest me what might be done to mend it.

Note that Phabricator has a built-in "pastebin": you can create a new paste here and embed it into any comment :)

As per the latest patch that is submitted at gerrit, I get corresponding error while testing : output. Please suggest me what might be done to mend it.

This works for me on the latest master:

import pywikibot
site = pywikibot.Site('en', 'wikipedia')
page = pywikibot.Page(site, 'Template:MONTHNAME')
page.get()

Then any clue why this unwanted behavior in code ?

Xqt triaged this task as Low priority.Nov 6 2018, 7:16 AM

Change 181724 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] Porting parser_function_count.py from compat to core/scripts

https://gerrit.wikimedia.org/r/181724

Change 181724 merged by jenkins-bot:
[pywikibot/core@master] Porting parser_function_count.py from compat to core/scripts

https://gerrit.wikimedia.org/r/181724