https://bugzilla.wikimedia.org/show_bug.cgi?id=55236
Web browser: ---
Bug ID: 55236
Summary: Self closing tags
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/1334/
Reported by: Anonymous user
Created on: 2011-08-28 15:13:07
Subject: Self closing tags
Original description:
Since MW 1.16 wgHtm5 and wgWellFormedXml are turned on by default. And
cosmetic\_changes.py still changes things like <br> to <br />, I
don't see any reason for that. There are three options we have here:
\* Stop making these kind of changes
\* Make these changes "complete" and add some tags that are not fixed \(eg.
<hr> to <hr />\)
\* Do just the opposite, and let the MW fix the tags \(eg. a<br/> to
<br>, etc\)
I like the third option, because it makes the code easier to read for editors.
In the attachment there's a patch to apply the third option.
python version.py:
Pywikipedia \[http\] trunk/pywikipedia \(r9462, 2011/08/28, 11:34:03\)
Python 2.7 \(r27:82500, Aug 07 2010, 16:54:59\) \[GCC\]
config-settings:
use\_api = True
use\_api\_login = True
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55169
Web browser: ---
Bug ID: 55169
Summary: Reading Templates within Templates
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/1525/
Reported by: Anonymous user
Created on: 2012-10-24 04:53:20
Subject: Reading Templates within Templates
Assigned to: xqt
Original description:
Hi\!
Pywikipedia is used to harvest the in-wiki monument lists to the monuments
database. I noticed the Error
https://bugzilla.wikimedia.org/show\_bug.cgi?id=39973, the following lines are
a copy of the existing bug:
Some values provided by headertemplates \(ie 'Gemeinde' in Austrian lists\) are
not filled if there is a template part of any row parameter. Specific example:
http://de.wikipedia.org/wiki/Liste\_der\_denkmalgesch%C3%BCtzten\_Objekte\_…
In article:
\{\{Denkmalliste Österreich Tabellenkopf
|Gemeinde = Pfons
|Bezirk = Bezirk Innsbruck Land
<...>
\}\}
\{\{Denkmalliste Österreich Tabellenzeile
|Name = Friedhof mit Kapellen und Kleindenkmalen
|Beschreibung =
|ObjektID = 110694
<...>
\}\}
\{\{Denkmalliste Österreich Tabellenzeile
|Name = Kath. Pfarrkirche Mariä Himmelfahrt
|Beschreibung = \{\{Hauptartikel|Mariä-Himmelfahrt-Kirche \(Pfons\)\}\}
|ObjektID = 64604
<...>
\}\}
and in database:
SELECT \`objektid\`, \`name\`, \`gemeinde\`, \`bezirk\` FROM
\`p\_erfgoed\_p\`.\`monuments\_at\_\(de\)\` WHERE \`objektid\` = 110694 or
\`objektid\` =
64604;
| objektid | name | gemeinde | bezirk
| 110694 | Friedhof mit Kapellen<...> | Pfons | Bezirk Innsbruck
Land
| 64604 | Kath. Pfarrkirche Mar<...> | |
many other examples can be found by SELECT \* FROM
\`p\_erfgoed\_p\`.\`monuments\_at\_\(de\)\` WHERE \`gemeinde\` = '';
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55149
Web browser: ---
Bug ID: 55149
Summary: setitem for wikidata doesn't work!
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/1587/
Reported by: reza1615
Created on: 2013-02-24 19:21:13
Subject: setitem for wikidata doesn't work!
Original description:
I used this code
\#\!/usr/bin/python
\# -\*- coding: utf-8 -\*-
import wikipedia,login
summary=u'آبشار لاتون,آبشار لاتون'
site=wikipedia.getSite\('fa',fam='wikipedia'\)
fapage=wikipedia.Page\(site,u'آبشار\_لاتون'\)
data=wikipedia.DataPage\(fapage\)
list=data.get\(\)
id=list\['entity'\].replace\('q',''\)
data = wikipedia.DataPage\(site.data\_repository\(\), "Q"+id\)
data.setitem\(summary,items=\{'type': u'item', 'label': 'glk',
'value':u'آبشار\_لاتون'\}\)
data.setitem\(summary,items=\{'type': u'sitelink', 'site': 'glk',
'title':u'آبشار\_لاتون\_\(بارزاو\)'\}\)
it shows
Updating page \[\[wikidata:Q5058182\]\] via API
Updating page \[\[wikidata:Q5058182\]\] via API
but it doesn't update the page\!
also please add
def getIdFromPage\(data\)
id=data.get\(\) \['entity'\].replace\('q',''\)
return id
and add
data = DataPage\(site.data\_repository\(\), "Q"+id\)
to first line of setitem\(\)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55179
Web browser: ---
Bug ID: 55179
Summary: cosmetics_changes.py chokes on big article
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/1495/
Reported by: harriv
Created on: 2012-07-22 17:20:35
Subject: cosmetics_changes.py chokes on big article
Original description:
I tried to create list of 55000+ page category with category.py and
cosmetic\_changes enabled. Script seems to hang for a very long time. If
cosmetic changes are disable, this doesn't occur.
Here's stack trace when CTRL-C is pressed:
^CTraceback \(most recent call last\):
File "category.py", line 1005, in <module>
main\(\)
File "category.py", line 998, in main
bot.run\(\)
File "category.py", line 536, in run
self.list.put\(listString, comment=self.editSummary\)
File "/home/users/harriv/wikibot/tmp/pywikipedia/wikipedia.py", line 2005, in
put
newtext = ccToolkit.change\(newtext\)
File "/home/users/harriv/wikibot/tmp/pywikipedia/cosmetic\_changes.py", line
166, in change
text = self.cleanUpLinks\(text\)
File "/home/users/harriv/wikibot/tmp/pywikipedia/cosmetic\_changes.py", line
517, in cleanUpLinks
'startspace'\]\)
File "/home/users/harriv/wikibot/tmp/pywikipedia/pywikibot/textlib.py", line
135, in replaceExcept
excMatch = dontTouchR.search\(text, index\)
KeyboardInterrupt
Version info:
Pywikipedia \[http\] trunk/pywikipedia \(r10461, 2012/07/22, 16:33:39\)
Python 2.6.6 \(r266:84292, Dec 26 2010, 22:31:48\)
\[GCC 4.4.5\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: triggers problem \#3081100
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55222
Web browser: ---
Bug ID: 55222
Summary: cosmetic_changes.py and <code>
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/1393/
Reported by: ganz-ru
Created on: 2012-01-14 17:37:31
Subject: cosmetic_changes.py and <code>
Original description:
Here:
http://ru.wikipedia.org/w/index.php?diff=40245627&oldid=39731202http://ru.wikipedia.org/w/index.php?diff=40765267&oldid=39425330
cosmetic\_changes.py replaced the internal internal html-text of
<code>...</code> with unicode symbols. That's not good, since the
tag <code> is for an original representation of codes, including the
html-code. So, I propose to add this tag to the elist of exceptions.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55219
Web browser: ---
Bug ID: 55219
Summary: Updating complex pages
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/1399/
Reported by: malafaya
Created on: 2012-01-17 00:22:50
Subject: Updating complex pages
Original description:
When updating complex pages, it's common to get a Timeout, because the
Wikimedia server does not process and return the page within the expected time.
In suchs cases \(when a timeout exception is thrown\), my suggestion si that
pywikipedia should try to fetch the page again and check if there are any
differences against the new page to be saved. If not, then it should proceed
and not block indefinitely in such pages.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=60603
Web browser: ---
Bug ID: 60603
Summary: archivebot.py does not handle some cases of param
archive= in template
Product: Pywikibot
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: mpaa.wiki(a)gmail.com
Classification: Unclassified
Mobile Platform: ---
Cases like this are not supported, see
https://en.wikipedia.org/wiki/Talk:15th_%28Imperial_Service%29_Cavalry_Brig…
{{User:MiszaBot/config
|algo=old(7d)
|archive={{subst:15th (Imperial Service) Cavalry Brigade}}/Archive %(counter)d
|counter=1
|maxarchivesize=70K
|archiveheader={{talk archive navigation}}
|minthreadstoarchive=1
|minthreadsleft=0
}}
Another case is when page has been moved and archive= is the old name (i.e. a
redirect to the new name.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55220
Web browser: ---
Bug ID: 55220
Summary: put_async should support all put parameters
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/1398/
Reported by: valhallasw
Created on: 2012-01-15 18:36:28
Subject: put_async should support all put parameters
Original description:
http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-December/007048.html
"""
Page has this method:
def put\_async\(self, newtext,
comment=None, watchArticle=None, minorEdit=True, force=False,
It says: All arguments are the same as for .put\(\), except callback:
But three of the parameters of Page.put is missing: sysop=False, botflag=True,
maxTries=-1.
"""
The queue currently uses \(page, parm1, parm2, ...\) tuples, which are not
practical. This should be changed to, for instance, \(page, args, kwargs\), so
that page.put\(\) can be called using page.put\(\*args, \*\*kwargs\).
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55215
Web browser: ---
Bug ID: 55215
Summary: Change edit description of commonscat.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/1406/
Reported by: mga73
Created on: 2012-02-16 21:39:31
Subject: Change edit description of commonscat.py
Original description:
When commonscat.py adds a template it uses a description like "Robot: Adding
\{\{Commons category|Disney people\}\}"
http://en.wikipedia.org/w/index.php?title=Category:Disney\_people&diff=prev…
The summary is not wrong but sometimes the bot adds a wrong link because
someone has added a wrong link on another wiki. When that happens you have to
check all interwiki links manually to find out where the error is.
To make it easier to find the wrong link it would be nice if the summary could
be changed to tell where the link was found like "Robot: Adding \{\{Commons
category|Disney people\}\} - from xx wiki". If possible the bot should list all
wikis that has the same wrong link "... - from xx, yy, zz ... wiki".
\*\*\*\* If needed:
C:\Pywikipedia>version.py
Pywikipedia \[http\] trunk/pywikipedia \(r9900, 2012/02/16, 20:41:18\)
Python 2.7.1 \(r271:86832, Nov 27 2010, 17:19:03\) \[MSC v.1500 64 bit
\(AMD64\)\]
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55207
Web browser: ---
Bug ID: 55207
Summary: title of ml-site not found in list retrieved via API
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/1421/
Reported by: xqt
Created on: 2012-03-11 12:59:40
Subject: title of ml-site not found in list retrieved via API
Original description:
Retrieving pages from ml-wikipedia results in that BUG
Getting 52 pages via API from wikipedia:ml...
BUG>> title ????? ??????? \(\[\[ml:????? ???????\]\]\) not found in list
Expected one of:
\[\[ml:????????\]\],\[\[ml:????\]\],\[\[ml:??????????\]\],\[\[ml:?????? ?????
\]\],\[\[ml:???????\]\],\[\[ml:???????\]\],\[\[ml:???????\]\],\[\[ml:???????????\]\],\[\[ml:????\]\],\[
\[ml:????\]\],\[\[ml:??????\]\],\[\[ml:??????
25\]\],\[\[ml:?????\]\],\[\[ml:????????\]\],\[\[ml:????
????\]\],\[\[ml:??????:?????????\]\],\[\[ml:?????\]\],\[\[ml:?????????\]\],\[\[ml:???????\]\],\[\[ml
:???????????\]\],\[\[ml:?????????????? ??????????? ???
?????\]\],\[\[ml:??????\]\],\[\[ml:??
??????\]\],\[\[ml:????\]\],\[\[ml:????\]\],\[\[ml:??????\]\],\[\[ml:?????????\]\],\[\[ml:????????\]\],
\[\[ml:????-????\]\],\[\[ml:????????????
????\]\],\[\[ml:???????\]\],\[\[ml:?????????\]\],\[\[ml:?
?????????????\]\],\[\[ml:????\]\],\[\[ml:???????\]\],\[\[ml:???????????\]\],\[\[ml:?????????????
\]\],\[\[ml:????????\]\],\[\[ml:??????? ?????????\]\],\[\[ml:??
????????\]\],\[\[ml:??????????\]\]
,\[\[ml:??????????? ???\]\],\[\[ml:?????????\]\],\[\[ml:?????\]\],\[\[ml:??????
???\]\],\[\[ml:???
???? ????????\]\],\[\[ml:???
??????????\]\],\[\[ml:???????\]\],\[\[ml:???????????????????\]\],
\[\[ml:???????? ??????????\]\],\[\[ml:?????? ????????\]\],\[\[ml:?????? ???\]\]
Traceback \(most recent call last\):
File "C:\pwb\trunk\pagegenerators.py", line 1200, in \_\_iter\_\_
for loaded\_page in self.preload\(somePages\):
File "C:\pwb\trunk\pagegenerators.py", line 1223, in preload
pywikibot.getall\(site, pagesThisSite\)
File "C:\pwb\trunk\wikipedia.py", line 4472, in getall
else:
File "C:\pwb\trunk\wikipedia.py", line 4098, in run
self.oneDoneApi\(vals\)
File "C:\pwb\trunk\wikipedia.py", line 4375, in oneDoneApi
raise PageNotFound
PageNotFound
C:\pwb\trunk
Pywikipedia trunk/pywikipedia/ \(r10009, 2012/03/11, 12:13:26\)
Python 2.7.2 \(default, Jun 12 2011, 14:24:46\) \[MSC v.1500 64 bit \(AMD64\)\]
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.