Page MenuHomePhabricator

Port parserfunctioncount.py to core
Open, LowPublic

Description


Version: core-(2.0)
Severity: normal

Details

Reference
bz64878

Event Timeline

bzimport raised the priority of this task from to Needs Triage.
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 updated the task description. (Show Details)Dec 5 2014, 4:07 AM
jayvdb set Security to None.
jayvdb removed a subscriber: Unknown Object (????).
droid added a subscriber: droid.Dec 20 2014, 10:19 AM

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?

droid added a comment.Dec 26 2014, 7:35 PM

Yup I do .. Prianka here..

Sorry :)
You should maybe connect your MediaWiki account.

droid added a comment.Dec 26 2014, 7:46 PM

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.

droid added a comment.Dec 26 2014, 8:28 PM

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

XZise added a subscriber: XZise.Dec 26 2014, 9:17 PM

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

droid added a comment.Feb 8 2015, 6:10 AM

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()
droid added a comment.Feb 8 2015, 6:57 AM

Then any clue why this unwanted behavior in code ?

Prod added a subscriber: Prod.Jul 10 2016, 12:46 PM
D3r1ck01 moved this task from Backlog to Needs Review on the Pywikibot board.Nov 5 2018, 11:36 AM
Xqt triaged this task as Low priority.Nov 6 2018, 7:16 AM