https://bugzilla.wikimedia.org/show_bug.cgi?id=55165
--- Comment #1 from Kunal Mehta (Legoktm) <legoktm.wikipedia(a)gmail.com> ---
Some remarks:
I changed the hostname\(\) in family file to "mlp.wikia.com" and used the
following statements:
import wikipedia as wp
s = wp.getSite\('wikia', 'wikia'\)
p = wp.Page\(s, 'Template:Date/doc'\)
t = p.get\(force=True\)
result:
Traceback \(most recent call last\):
File "<pyshell\#69>", line 1, in <module>
t = p.get\(force=True\)
File "wikipedia.py", line 699, in get
expandtemplates = expandtemplates\)
File "wikipedia.py", line 800, in \_getEditPage
"Page does not exist. In rare cases, if you are certain the page does exist,
look into overriding family.RversionTab"\)
NoPage: \(wikia:wikia, u'\[\[wikia:Template:Date/doc\]\]', 'Page does not
exist. In rare cases, if you are certain the page does exist, look into
overriding family.RversionTab'\)
the query param dict was:
\{'inprop': \['protection', 'subjectid'\], 'rvprop':
\['content', 'ids',
'flags', 'timestamp', 'user', 'comment', 'size'\],
'prop': \['revisions',
'info'\], 'titles': u'Template:Date/doc', 'rvlimit': 1,
'action': 'query'\}
the result data dict was:
\{u'query': \{u'pages': \{u'-1': \{u'protection': \[\],
u'ns': 10, u'missing':
u'', u'title': u'Template:Date/doc'\}\}\}\}
and last the url is:
/api.php?inprop=protection%7Csubjectid&format=json&rvprop=content%7Cids%7Cflags%7Ctimestamp%7Cuser%7Ccomment%7Csize&prop=revisions%7Cinfo&titles=Template%3ADate/doc&rvlimit=1&action=query
which gives the right result via browser e.g.:
http://mlp.wikia.com/api.php?inprop=protection%7Csubjectid&format=json&…
--
You are receiving this mail because:
You are the assignee for the bug.