Bugs item #3059367, was opened at 2010-09-04 16:53
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3059367&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: category
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: xqt (xqt)
Summary: Persons
Initial Comment:
There is bug in adding category with parameter -person:
Bot adds category duplicate
http://cs.wikipedia.org/w/index.php?title=Lucie_B%C3%ADl%C3%A1&diff=prev&ol…http://cs.wikipedia.org/w/index.php?title=Lucie_Borhyov%C3%A1&diff=prev&old…
And there might be better to add {{DEFAULTSORT:Surname, Name}}, [[Category:Foo]] instead of [[Category:Foo|Surname, Name]]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-09-08 15:16
Message:
done in r8496
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-09-08 14:33
Message:
Forget my last comment. This bug is still remaining with -person option.
Working on a fix...
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-09-08 14:19
Message:
Could you please check whether this works with the new category release
8494? Debugging it is a mess. It seems title[:1].capitalize() didn't work
whereas title[:1].upper() does it.
I also changed the behaviour for change confirmation thus you'll first see
the diff.
I've tested your problem on my test page at de-wiki with python 2.7 and it
worked for me:
>>> import wikipedia as wp
>>> import category as cat
>>> page = wp.Page('de','user:xqt/Test')
bot = cat.AddCategory([page], sort_by_last_name=True)
>>> bot.run()
Category to add (do not give namespace): ženy
>>> Benutzer:Xqt/Test <<<
Current categories:
* Kategorie:Ženy
* Kategorie:Narození 1978
* Kategorie:Žijící lidé
* Kategorie:TV Nova
* Kategorie:Ceští moderátori
* Kategorie:Ženy
Benutzer:Xqt/Test is already in Kategorie:Ženy.
1 page(s) processed.
>>>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3059367&group_…
Bugs item #3059367, was opened at 2010-09-04 16:53
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3059367&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: category
Group: None
>Status: Open
>Resolution: None
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: xqt (xqt)
Summary: Persons
Initial Comment:
There is bug in adding category with parameter -person:
Bot adds category duplicate
http://cs.wikipedia.org/w/index.php?title=Lucie_B%C3%ADl%C3%A1&diff=prev&ol…http://cs.wikipedia.org/w/index.php?title=Lucie_Borhyov%C3%A1&diff=prev&old…
And there might be better to add {{DEFAULTSORT:Surname, Name}}, [[Category:Foo]] instead of [[Category:Foo|Surname, Name]]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-09-08 14:33
Message:
Forget my last comment. This bug is still remaining with -person option.
Working on a fix...
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-09-08 14:19
Message:
Could you please check whether this works with the new category release
8494? Debugging it is a mess. It seems title[:1].capitalize() didn't work
whereas title[:1].upper() does it.
I also changed the behaviour for change confirmation thus you'll first see
the diff.
I've tested your problem on my test page at de-wiki with python 2.7 and it
worked for me:
>>> import wikipedia as wp
>>> import category as cat
>>> page = wp.Page('de','user:xqt/Test')
bot = cat.AddCategory([page], sort_by_last_name=True)
>>> bot.run()
Category to add (do not give namespace): ženy
>>> Benutzer:Xqt/Test <<<
Current categories:
* Kategorie:Ženy
* Kategorie:Narození 1978
* Kategorie:Žijící lidé
* Kategorie:TV Nova
* Kategorie:Ceští moderátori
* Kategorie:Ženy
Benutzer:Xqt/Test is already in Kategorie:Ženy.
1 page(s) processed.
>>>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3059367&group_…
Bugs item #3059367, was opened at 2010-09-04 16:53
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3059367&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: category
Group: None
>Status: Pending
>Resolution: Works For Me
Priority: 5
Private: No
Submitted By: JAn (jandudik)
>Assigned to: xqt (xqt)
Summary: Persons
Initial Comment:
There is bug in adding category with parameter -person:
Bot adds category duplicate
http://cs.wikipedia.org/w/index.php?title=Lucie_B%C3%ADl%C3%A1&diff=prev&ol…http://cs.wikipedia.org/w/index.php?title=Lucie_Borhyov%C3%A1&diff=prev&old…
And there might be better to add {{DEFAULTSORT:Surname, Name}}, [[Category:Foo]] instead of [[Category:Foo|Surname, Name]]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-09-08 14:19
Message:
Could you please check whether this works with the new category release
8494? Debugging it is a mess. It seems title[:1].capitalize() didn't work
whereas title[:1].upper() does it.
I also changed the behaviour for change confirmation thus you'll first see
the diff.
I've tested your problem on my test page at de-wiki with python 2.7 and it
worked for me:
>>> import wikipedia as wp
>>> import category as cat
>>> page = wp.Page('de','user:xqt/Test')
bot = cat.AddCategory([page], sort_by_last_name=True)
>>> bot.run()
Category to add (do not give namespace): ženy
>>> Benutzer:Xqt/Test <<<
Current categories:
* Kategorie:Ženy
* Kategorie:Narození 1978
* Kategorie:Žijící lidé
* Kategorie:TV Nova
* Kategorie:Ceští moderátori
* Kategorie:Ženy
Benutzer:Xqt/Test is already in Kategorie:Ženy.
1 page(s) processed.
>>>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3059367&group_…
Bugs item #3059970, was opened at 2010-09-05 22:35
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3059970&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Merlijn S. van Deen (valhallasw)
>Assigned to: xqt (xqt)
Summary: Invalid image page title yields incorrect exception
Initial Comment:
valhallasw@nightshade:~/src/pywikipedia/pywikipedia$ cat test.py
# coding=utf-8
import wikipedia
print wikipedia.ImagePage(wikipedia.getSite('en', 'wiktionary'), u'{{zh-lookup|吗}}').fileIsOnCommons();
>>> wikipedia.ImagePage(wikipedia.getSite('en', 'wiktionary'), u'{{zh-lookup|吗}}').fileIsOnCommons();
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/valhallasw/src/pywikipedia/pywikipedia/wikipedia.py", line 3588, in fileIsOnCommons
self._loadInfo()
File "/home/valhallasw/src/pywikipedia/pywikipedia/wikipedia.py", line 3534, in _loadInfo
if data['query']['pages'].values()[0]["imagerepository"] == "shared":
KeyError: 'imagerepository'
-> if data['query']['pages'].values()[0]["imagerepository"] == "shared":
(Pdb) dir()
['count', 'data', 'limit', 'params', 'self']
(Pdb) data
{u'query': {u'pages': {u'-1': {u'invalid': u'', u'title': u'File:{{zh-lookup'}, u'-2': {u'invalid': u'', u'title': u'\u5417}}'}}}}
Obviously, this should have resulted in an InvalidTitle exception instead of a KeyError.
valhallasw@nightshade:~/src/pywikipedia/pywikipedia$ python version.py
Pywikipedia (r-1 (unknown), 0 (unknown))
Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40)
[GCC 4.3.2]
config-settings:
use_api = True
use_api_login = True
Running r8370 (under git-svn)
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-09-07 22:25
Message:
done in r8492
I've used wikipedia.badTitle error in same way as in _getEditPage()
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3059970&group_…
Patches item #3055992, was opened at 2010-08-30 13:50
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3055992&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: romain (romainhk)
>Assigned to: xqt (xqt)
Summary: getting categories via API
Initial Comment:
Method page.categories(api=True) didn't get enough results for pages with a lot of categories (for example on WP:en, with Talk:U2 or Talk:Unification of Germany, you only get the 10 first).
In fact, it's just an indentation error on the return in wikipedia.py at line 2247, which prevent the loop to get all of them.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-09-07 21:53
Message:
done in r8491. thanks
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3055992&group_…
Bugs item #3058111, was opened at 2010-09-02 13:05
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3058111&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: redirect.py update for Russian
Initial Comment:
Please update delete summary and delete template for Russian in redirect.py
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-09-07 21:33
Message:
done in r8489. thanks
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3058111&group_…
Bugs item #3060262, was opened at 2010-09-06 11:25
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3060262&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 7
Private: No
Submitted By: Mercy (wikimercy)
>Assigned to: xqt (xqt)
Summary: commonscat.py addition for sv.wikipedia
Initial Comment:
Hi, could you please add the following template to be ignored? Thank you!
ignoreTemplates = {
'sv' : [u'commonscatbox'],
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-09-07 21:19
Message:
done in r8488
pls check whether this is done as u expected
----------------------------------------------------------------------
Comment By: Mercy (wikimercy)
Date: 2010-09-06 22:42
Message:
Please add also the following expression to the previous string:
u'Commonscat-box'
----------------------------------------------------------------------
Comment By: Mercy (wikimercy)
Date: 2010-09-06 22:08
Message:
UPDATE: Instead of the former requested addition, please make the following
update:
commonscatTemplates = {
'sv' : (u'Commonscat', [u'Commonscat-rad', u'Commonskat', u'Commons
cat', u'Commonscatbox']),
Thanks a lot!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3060262&group_…
Bugs item #3060262, was opened at 2010-09-06 11:25
Message generated for change (Comment added) made by wikimercy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3060262&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Resolution: None
>Priority: 7
Private: No
Submitted By: Mercy (wikimercy)
Assigned to: Nobody/Anonymous (nobody)
Summary: commonscat.py addition for sv.wikipedia
Initial Comment:
Hi, could you please add the following template to be ignored? Thank you!
ignoreTemplates = {
'sv' : [u'commonscatbox'],
----------------------------------------------------------------------
>Comment By: Mercy (wikimercy)
Date: 2010-09-06 22:42
Message:
Please add also the following expression to the previous string:
u'Commonscat-box'
----------------------------------------------------------------------
Comment By: Mercy (wikimercy)
Date: 2010-09-06 22:08
Message:
UPDATE: Instead of the former requested addition, please make the following
update:
commonscatTemplates = {
'sv' : (u'Commonscat', [u'Commonscat-rad', u'Commonskat', u'Commons
cat', u'Commonscatbox']),
Thanks a lot!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3060262&group_…
Bugs item #3060262, was opened at 2010-09-06 11:25
Message generated for change (Settings changed) made by wikimercy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3060262&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Resolution: None
>Priority: 9
Private: No
Submitted By: Mercy (wikimercy)
Assigned to: Nobody/Anonymous (nobody)
Summary: commonscat.py addition for sv.wikipedia
Initial Comment:
Hi, could you please add the following template to be ignored? Thank you!
ignoreTemplates = {
'sv' : [u'commonscatbox'],
----------------------------------------------------------------------
>Comment By: Mercy (wikimercy)
Date: 2010-09-06 22:08
Message:
UPDATE: Instead of the former requested addition, please make the following
update:
commonscatTemplates = {
'sv' : (u'Commonscat', [u'Commonscat-rad', u'Commonskat', u'Commons
cat', u'Commonscatbox']),
Thanks a lot!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3060262&group_…
Bugs item #3060262, was opened at 2010-09-06 11:25
Message generated for change (Tracker Item Submitted) made by wikimercy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3060262&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mercy (wikimercy)
Assigned to: Nobody/Anonymous (nobody)
Summary: commonscat.py addition for sv.wikipedia
Initial Comment:
Hi, could you please add the following template to be ignored? Thank you!
ignoreTemplates = {
'sv' : [u'commonscatbox'],
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3060262&group_…