https://bugzilla.wikimedia.org/show_bug.cgi?id=55167
Web browser: ---
Bug ID: 55167
Summary: missing attribut page._pagid after Site.loadinfo(page)
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
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/1534/
Reported by: xqt
Created on: 2012-11-04 11:08:35
Subject: missing attribut page._pagid after Site.loadinfo(page)
Assigned to: russblau
Original description:
Another missing attribut:
Retrieving 50 pages from wikipedia:en.
WARNING: preloadpages: Query returned unexpected title 'International law'
Dump de \(wikipedia\) appended.
Traceback \(most recent call last\):
File "C:\Pywikipedia\rw\pwb.py", line 42, in <module>
execfile\(sys.argv\[0\]\)
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2516, in <module>
if \_\_name\_\_ == "\_\_main\_\_":
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2490, in main
try:
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2248, in run
"""Start the process until finished"""
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2221, in queryStep
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 2217, in oneQuery
\# Tell all of the subjects that the promised work is done
File "C:\Pywikipedia\rw\scripts\interwiki.py", line 1224, in batchLoaded
if not page.exists\(\):
File "C:\Pywikipedia\rw\pywikibot\page.py", line 411, in exists
return self.site.page\_exists\(self\)
File "C:\Pywikipedia\rw\pywikibot\site.py", line 1153, in page\_exists
return page.\_pageid > 0
AttributeError: 'Page' object has no attribute '\_pageid'
and btw "en:International law" exists\!
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55231
Web browser: ---
Bug ID: 55231
Summary: template with /doc subpage interwiki.py has problem
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: Unprioritized
Component: interwiki.py
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/1366/
Reported by: reza1615
Created on: 2011-10-24 03:23:28
Subject: template with /doc subpage interwiki.py has problem
Assigned to: xqt
Original description:
Hi,
i came across a problom with templates that have /doc subpage. if some of
interwikis don't have /doc it confuses and delete other interwikis
cases
http://en.wikipedia.org/w/index.php?title=Template:Cite\_encyclopedia/doc&d…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55144
Web browser: ---
Bug ID: 55144
Summary: Date and time format in archivebot.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/1614/
Reported by: n-fran
Created on: 2013-04-14 06:34:38
Subject: Date and time format in archivebot.py
Original description:
Skilled owners of bots told me that the problem because of which archivebot.py
doesn't work in the Russian Wikipedia, is that the bot doesn't accept a format
of date and time of the Russian Wikipedia.
http://en.wikipedia.org/wiki/Wikipedia:Village\_pump\_%28technical%29\#arch…
I would like that in standard framework the relevant amendments allowing users
of the Russian Wikipedia to work with this script were made. Also, please, make
amendments to a standard code for the Chinese Wikipedia.
https://github.com/makecat/wikipediabot/commit/659a774d159d0c53e4ee74f2b78e…
Thanks.
Pywikipedia \(r11307 \(wikipedia.py\), 2013/03/30, 16:42:04, OUTDATED\)
Python 2.6.4 \(r264:75708, Oct 26 2009, 08:23:19\) \[MSC v.1500 32 bit
\(Intel\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55032
Web browser: ---
Bug ID: 55032
Summary: -enable arg to all scripts
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/312/
Reported by: avicennasis
Created on: 2012-06-18 05:17:33
Subject: -enable arg to all scripts
Original description:
It would be handy to have an optional -enable "Checkpage" option built into
scripts by default - so that a bot can deactivated by non-admins, if so needed.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55206
Web browser: ---
Bug ID: 55206
Summary: Urlencoded section titles are not recognised
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/1422/
Reported by: valhallasw
Created on: 2012-03-17 21:37:46
Subject: Urlencoded section titles are not recognised
Original description:
See bug \#2776438 /
https://sourceforge.net/tracker/index.php?func=detail&aid=2776438&group\_id…
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=59686
Web browser: ---
Bug ID: 59686
Summary: fixing_redirects.py: move treat() to pywikibot/textlib
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: 58942
Classification: Unclassified
Mobile Platform: ---
def treat should be moved to pywikibot/textlib.py (as 'replaceLinks(text,
fromPage, toPage)')
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55283
Web browser: ---
Bug ID: 55283
Summary: sectionencode incorrectly encoding
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/1147/
Reported by: Anonymous user
Created on: 2010-03-16 22:21:02
Subject: sectionencode incorrectly encoding
Original description:
>>> wikipedia.sectionencode\(':/', 'utf-8'\)
'.3A/'
Which is incorrect as it is ":.2F"
The correct code for sectionencode\(\) should be:
return urllib.quote\(text.replace\(" ","\_"\).encode\(encoding\),
safe=':'\).replace\("%","."\)
Also, it would be nice if encoding defaulted here to 'utf-8'
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54561
Web browser: ---
Bug ID: 54561
Summary: lonely pages as an handlearg
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/patches/559/
Reported by: nickanc
Created on: 2012-08-04 19:31:11
Subject: lonely pages as an handlearg
Original description:
This is the first time I make edits to pagegenerators.py. I added a new
parameter -lonelypages:n to work on lonely pages. :\)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55000
Web browser: ---
Bug ID: 55000
Summary: claimit.py: lang for source lookup
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
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/346/
Reported by: apac1
Created on: 2013-08-31 12:40:09.399000
Subject: claimit.py: lang for source lookup
Assigned to: legoktm
Original description:
def setSource(self, lang):
page = pywikibot.Page(self.repo, 'Wikidata:List of wikis/python')
source_values = json.loads(page.get())
source_values = source_values['wikipedia']
for lang in source_values:
source_values[lang] = pywikibot.ItemPage(self.repo,
source_values[lang])
if lang in source_values:
self.source = pywikibot.Claim(self.repo, 'p143')
self.source.setTarget(source_values.get(lang))
The use of lang in "for lang in source_values:" overwrites the lang in "def
setSource(self, lang)". This leads to incorrect results. "lang" should be the
language of the source wiki. For -cat:"zh:Category:Somevalue" this would be
"zh".
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55146
Web browser: ---
Bug ID: 55146
Summary: interwiki() fails for closed wikipedia
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: ASSIGNED
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/1608/
Reported by: cdpark
Created on: 2013-04-04 01:32:44
Subject: interwiki() fails for closed wikipedia
Assigned to: amird
Original description:
Page.interwiki\(\) and PageData.interwiki\(\) fails when wikidata contains
sitelinks of closed wikipedias.
For example, following code is broken now.
\---------------------------------------------------------------------------------------------------
\#\!/usr/bin/python
\# -\*- coding: utf-8 -\*-
import pywikibot
en = pywikibot.getSite\('en', 'wikipedia'\)
mainpage = pywikibot.Page\(en, u'Main Page'\)
interwiki = mainpage.interwiki\(\)
print interwiki
\--------------------------------------------------------------------------------------------------------------
--
You are receiving this mail because:
You are the assignee for the bug.