https://bugzilla.wikimedia.org/show_bug.cgi?id=57995
Web browser: ---
Bug ID: 57995
Summary: Add function for list=watchlistraw
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Didn't see a function which retrieves a user's watchlist (Site.watchlist_revs
fetches changes on the watchlist)
This isn't as easy as it looks since the elements are returned directly under
'watchlistraw' and not 'query' like every other API module...
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71451
Bug ID: 71451
Summary: Site cache does not distinguish between classes
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
pywikibot has a cache of Site objects in the method pywikibot.Site. It uses a
key of (family_name, site_code, username). If the site is a data repository,
and first access of the site is via APISite.data_repository(), a DataSite
object will be cached, and subsequent requests for an APISite will return a
DataSite instead of an APISite.
DataSite is an APISite, but it has many methods marked as NotImplemented.
Steps to reproduce:
1. Set the user-config.py default site to ar.wikipedia
2. Instantiate a Wikidata client site object for ar.wikipedia
3. Request the Wikidata repo object
4. Instantiate a Wikidata repo site object for wikidata.wikidata
Expected results:
The object returned from step 4 will be an APISite
Actual results:
The object returned from step 4 will be a DataSite
$ python pwb.py shell
Welcome to the Pywikibot interactive shell!
>>> import pywikibot
>>> s = pywikibot.Site('ar', 'wikipedia')
>>> ds = s.data_repository()
>>> ds
DataSite("wikidata", "wikidata")
>>> s2 = pywikibot.Site('wikidata', 'wikidata')
>>> s2
DataSite("wikidata", "wikidata")
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55024
Web browser: ---
Bug ID: 55024
Summary: Support of preload param in page.get()
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/320/
Reported by: Anonymous user
Created on: 2012-11-17 21:33:36
Subject: Support of preload param in page.get()
Original description:
Would it be nice to support 'inprop': 'preload' for 'prop': 'info' when
calling query GetData\(\) to get text even if page is does not exist.
It could be added as argument to page.get\(..., preload = False\) and used to
return data\['query'\]\['pages'\]\["-1"\]\['preload'\] with something like:
if data\['query'\]\['pages'\].keys\(\)\[0\] == "-1":
if 'missing' in pageInfo:
if preload:
....
That would be useful when trying to get text in still not created page.
This kind of pages are quite common on en:Wikisource, due text layer being
already present in used djvu files.
E.g. \[Page:Debates in the Several State Conventions, v1.djvu/189\].
Thanks and bye
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64853
Bug ID: 64853
Summary: Port djvutext.py to core
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: valhallasw(a)arctus.nl
Blocks: 55880
Web browser: ---
Mobile Platform: ---
Might be non-trivial due to dependency on a djvu reading program ('djvused'),
part of djvulibre-bin
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70985
Bug ID: 70985
Summary: replaceExcept is DEPRECATED
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
pwb.py replace -regex -nocase -transcludes:silnice "silnice
\{\{silnice\|I\|(.*?)(\|)*\}\}" "[[silnice I/\1]]" "silnice
\{\{silnice\|II\|(.*?)(\|)*\}\}" "[[silnice II/\1]]" -summary:"link na silnici
- v textu textem"
Retrieving 50 pages from wikipedia:cs.
...
>>> Dobrichovice <<<
- :Mestem prochazi silnice {{Silnice|II|115||}} Praha Radotin - Dobrichovice -
R
evnice.
+ :Mestem prochazi [[silnice II/115]] Praha Radotin - Dobrichovice - Revnice.
Do you want to accept these changes? ([y]es, [N]o, [e]dit, open in [b]rowser,
[a
]ll, [q]uit) y
No changes were necessary in [[Brehov]]
No changes were necessary in [[Dasny]]
>>> Petrovice (okres Rakovnik) <<<
- :Obci vede silnice {{Silnice|II|229||}} Rakovnik - Kralovice.
+ :Obci vede [[silnice II/229]] Rakovnik - Kralovice.
Do you want to accept these changes? ([y]es, [N]o, [e]dit, open in [b]rowser,
[a
]ll, [q]uit) WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is
DEPRE
CATED, use pywikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
WARNING: D:\Py\rewrite\pywikibot\__init__.py.replaceExcept is DEPRECATED, use
py
wikibot.textlib.replaceExcept instead.
Page [[Dobrichovice]] saved
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55157
Web browser: ---
Bug ID: 55157
Summary: -always invalid in movepages.py
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: legoktm.wikipedia(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1556/
Reported by: yfdyh000
Created on: 2013-01-03 01:33:19
Subject: -always invalid in movepages.py
Original description:
Pywikipedia trunk/pywikipedia/ \(r10857, 2013/01/01, 10:55:12\)
Python 2.7.3 \(default, Apr 10 2012, 23:31:26\) \[MSC v.1500 32 bit \(Intel\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
Always automatically start submission after running, not prompt user to
confirm.
Because 'if self.addprefix or self.appendAll or self.regexAll:' is False, so it
directly submitted by 'else:'.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=68659
Bug ID: 68659
Summary: imagetransfer fails badly if specified page does not
begin with correct namespace
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
$ python pwb.py imagetransfer -family:wikipedia -lang:en
"Joachim_Holst-Jensen_1923.jpg"
Traceback (most recent call last):
File "pwb.py", line 157, in <module>
run_python_file(fn, argv, argvu)
File "pwb.py", line 67, in run_python_file
exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/imagetransfer.py", line 356, in <module>
main()
File "scripts/imagetransfer.py", line 353, in main
bot.run()
File "scripts/imagetransfer.py", line 273, in run
{'title': page.title(), 'ns': pywikibot.Site().image_namespace()})
File ".../pywikibot/data/api.py", line 856, in result
p = PageGenerator.result(self, pagedata)
File ".../pywikibot/data/api.py", line 840, in result
update_page(p, pagedata)
File ".../pywikibot/data/api.py", line 996, in update_page
"Page %s has neither 'pageid' nor 'missing' attribute" % pagedict['title'])
AssertionError: Page Joachim Holst-Jensen 1923.jpg has neither 'pageid' nor
'missing' attribute
<type 'exceptions.AssertionError'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71159
Bug ID: 71159
Summary: action=wbset* API methods must be called by POST
request
Product: Pywikibot
Version: compat (1.0)
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: major
Priority: Unprioritized
Component: Wikidata
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: mail(a)putnik.ws
Web browser: ---
Mobile Platform: ---
Created attachment 16547
--> https://bugzilla.wikimedia.org/attachment.cgi?id=16547&action=edit
patch
All action=wbset* methods include 'csrf' token, which must be sent by POST
request.
This change fixes adding references and sitelinks.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=70820
Bug ID: 70820
Summary: Addinhg ability to ignore SSL certificate errors for
compat
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: login.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: reza.energy(a)gmail.com
Web browser: ---
Mobile Platform: ---
would you please add this patch for compat?
https://gerrit.wikimedia.org/r/#/c/160189/
Now when i edit claims it crashes and show this token error
File "/home/reza/compat/wikipedia.py", line 4799, in editclaim
raise RuntimeError("API query error: %s" % data)
RuntimeError: API query error: {u'servedby': u'mw1191', u'error': {u'info':
u"The 'token' parameter must be POSTed", u'code': u'mustposttoken'}}
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71115
Bug ID: 71115
Summary: Mark Zhuang wiktionary (za) as obsolete
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jan.dudik(a)gmail.com
Web browser: ---
Mobile Platform: ---
Both compat and core wiktionary_family.py contains 'za' as live language, but
this wiktionary is closed for two years
--
You are receiving this mail because:
You are the assignee for the bug.