Bugs item #3595741, was opened at 2012-12-13 17:38
Message generated for change (Tracker Item Submitted) made by stefan2wiki
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3595741&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stefan2 (stefan2wiki)
Assigned to: Nobody/Anonymous (nobody)
Summary: getFileVersionHistory doesn't work if information is hidden
Initial Comment:
Take a file where some information is hidden, for example this one:
https://commons.wikimedia.org/wiki/File:Catania_Piazza_Quattro_Canti.jpg
In this case, the edit summary for the first revision is missing.
Try this code:
import wikipedia
site = wikipedia.getSite(u'commons', u'commons')
page = wikipedia.ImagePage(site, u'File:Catania Piazza Quattro Canti.jpg')
history = page.getFileVersionHistory()
I get an error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "wikipedia.py", line 4194, in getFileVersionHistory
result.append((i['timestamp'], i['user'], u"%s×%s" % (i['width'], i['height']), i['size'], i['comment']))
KeyError: 'comment'
There is no i['comment'] because the comment is hidden (deleted).
Result: The script crashes when running getFileVersionHistory. It would be better if getFileVersionHistory at least returns what's available, instead of returning nothing at all. For example, if you use i.get('comment') instead of i['comment'], then getFileVersionHistory returns None if there is no comment. That seems much better than crashing.
Some version information:
Pywikipedia (r10715 (wikipedia.py), 2012/11/13, 20:56:05)
Python 2.7.3 (default, Aug 1 2012, 05:16:07)
[GCC 4.6.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3595741&group_…
Patches item #3595681, was opened at 2012-12-13 13:44
Message generated for change (Tracker Item Submitted) made by strainu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3595681&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Andrei Cipu (strainu)
Assigned to: Nobody/Anonymous (nobody)
Summary: New namespace for ro.wp
Initial Comment:
A new namespace ("Cod") has recently been added
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3595681&group_…
Bugs item #3594792, was opened at 2012-12-11 05:37
Message generated for change (Comment added) made by amird
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594792&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: cosmetic_changes.py bug in persian
Initial Comment:
Hi,
cosmetic_changes.py has bug in line 740 changes , to ٬
in some cases that text has Latin characters it shouldn't change it
http://fa.wikipedia.org/w/index.php?title=%D8%A8%D9%87%D8%A7%D8%B1_%D8%B4%D…
it changed
Zaman Əsgərli, ''XIX əsr Azərbaycan şeri antologiyası'', Bakı, "Şərq-Qərb", 2005, p. 254, ISBN 9952-418-69-5
to
Zaman Əsgərli، ''XIX əsr Azərbaycan şeri antologiyası''، Bakı، "Şərq-Qərb"، 2005، p. 254، ISBN 9952-418-69-5
which is not correct please solve it
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2012-12-11 17:52
Message:
Dear Reza,
I made a change:
https://www.mediawiki.org/wiki/Special:Code/pywikipedia/10788
Update your code and run it. is it working correctly?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594792&group_…
Bugs item #3538008, was opened at 2012-06-25 21:52
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3538008&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: James (jaclayiii)
Assigned to: Nobody/Anonymous (nobody)
Summary: *-login.data can have case discrepency on Linux host
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r10401, 2012/06/21, 06:18:43)
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
Summary: the *-login.data file maybe saved with an uppercase username but when load cookies tries to find it on a Linux host, the case of the username maybe lower. This has the unintended consequence of not allowing bots to login on private wikis that have anonymous read api rights disabled.
If a user connects to a wiki that has LDAP or some other form of "add-on" authentication, the user name returned may vary in case from what is in the user-config.py file. The reason this matters is that the <wikifamily>-<language>-<username>-login.data file may be saved with an upper case letter in the username. Thus if the user-config.py file contained:
users["mywiki"]["en"]="james"
but the LDAP authenticator returned back "James" as the username, then the *-login.data file would be mywiki-en-James-login.data, but when _loadcookies goes to look for such a file on line 5572:
if os.path.exists(localPA)
localPA is /~some/path/to/mywiki-en-james-login.data
Notice that the James is now lower case in the file above.
As Linux is case sensitive, it cannot find the login data and thus prevents access to wikis the do not allow anonymous access to api's. A temporary work around requires setting user name to the appropriate case (even if the username is case insensitive in the LDAP authentication scheme), for example:
users["mywiki"]["en"]="James"
keywords: SSL, Login failure, https login failure, https linux login, https pywikipedia, https pywikipedia linux
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2012-12-11 05:54
Message:
Hey! I'm at work surfing around your blog from my new iphone! Just wanted
to say I love reading through your blog and look forward to all your posts!
Carry on the excellent work!
north face jackets for women
http://xienna.gtp123.com/2012/12/10/discount-north-face-jackets-ontoce-stee…
----------------------------------------------------------------------
Comment By: James (jaclayiii)
Date: 2012-06-26 15:20
Message:
After thinking even more on this issue, even for those not using LDAP
authentication (which I would assume the majority are not using), correct
casing based on the user-config file shouldn't have undesirable effects: if
you can log in with what's in the user config file then correctly saving
the cookie file with that username shouldn't negatively impact anything. On
the other hand if you do not save the cookie file with the same user name
that is in the user-config file, but you continue to use the user-config
file to generate the localPA variable, then you may have problems on case
sensitive platforms.
If this fix seems to difficult (I don't believe it to be) or you're
suspicious of the logic, you may want to place a warning in the setup
instructions. I've added a comment on the wiki for userconfig.py that
people using *nix systems should be aware that by default mediawiki has
uppercase user names.
----------------------------------------------------------------------
Comment By: James (jaclayiii)
Date: 2012-06-26 12:08
Message:
After rereading the LDAP link, you're probably right in that the it's the
actual mediawiki login that is forcing uppercase, nonetheless the file name
that pywiki attempts to find should be case correct irrelevant of the
username supplied or returned. My thought for that fix has to do with
correctly saving the *-login.data cookie with the username found in
user-config.py.
----------------------------------------------------------------------
Comment By: James (jaclayiii)
Date: 2012-06-26 11:59
Message:
It has very much to do with LDAP:
http://www.mediawiki.org/wiki/Extension:LDAP_Authentication/User_Provided_I…
And it has very much to do with Linux: Linux path names are case sensitive.
I reported the bug as it took me time to track down and perhaps someone
else who has the misfortune of dealing with it will find this helpful.
The fact is that if I can login with a lower case name, and I can, then
whatever pywiki stores should be in the same case, NOT what may be returned
when the wiki user name is returned. The file name for *-login.data should
be the same case as what is stored in user-config.py
This is just good practice, especially on a case sensitive host like
Linux.
Also, as mediawiki is authenticating against LDAP, whatever it stores as
the username is irrelevant if it correctly authenticates. A further reason
to enforce correct casing based on the user-config.py file.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2012-06-26 03:27
Message:
This has very little to do with Linux or LDAP, but rather has to do with
the fact your username is 'James' and not 'james'. This is related to the
'first character is capitalized' convention on some wikis, but not all
(!).
However, we could probably check whether the name has changed when the user
is logged in and emit a warning when this happens (and/or store the cookie
with the username as saved in the config file, but that could have some
unintended consequences).
----------------------------------------------------------------------
Comment By: James (jaclayiii)
Date: 2012-06-25 21:56
Message:
Quick comment: _loadCookies() is in wikipedia.py on line 5534
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3538008&group_…
Bugs item #3594792, was opened at 2012-12-11 05:37
Message generated for change (Tracker Item Submitted) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594792&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: cosmetic_changes.py bug in persian
Initial Comment:
Hi,
cosmetic_changes.py has bug in line 740 changes , to ٬
in some cases that text has Latin characters it shouldn't change it
http://fa.wikipedia.org/w/index.php?title=%D8%A8%D9%87%D8%A7%D8%B1_%D8%B4%D…
it changed
Zaman Əsgərli, ''XIX əsr Azərbaycan şeri antologiyası'', Bakı, "Şərq-Qərb", 2005, p. 254, ISBN 9952-418-69-5
to
Zaman Əsgərli، ''XIX əsr Azərbaycan şeri antologiyası''، Bakı، "Şərq-Qərb"، 2005، p. 254، ISBN 9952-418-69-5
which is not correct please solve it
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594792&group_…
Bugs item #3474219, was opened at 2012-01-15 10:30
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3474219&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: Works For Me
Priority: 5
Private: No
Submitted By: Merlijn S. van Deen (valhallasw)
Assigned to: xqt (xqt)
Summary: interwiki.py configuration for plwiktionary
Initial Comment:
http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-May/006802.html
Since Interwicket stopped on wiktionaries, plwiktionary has not a fix interwiki bot. They want the iwikis added at the top of the page, but without creating new lines after the links. Pywikipedia does exactly the opposite, it creates these "new lines". It would be good if someone make a code to change that.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2012-12-09 15:18
Message:
837bDW <a href="http://uoohldeijwaq.com/">uoohldeijwaq</a>,
[url=http://enkzmbrgryvs.com/]enkzmbrgryvs[/url],
[link=http://hsrzaealvirf.com/]hsrzaealvirf[/link],
http://cjtvgelqroam.com/
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-01-17 21:17
Message:
There is more than one sample of this testings
http://pl.wiktionary.org/w/index.php?title=Wikipedysta:Xqt&diff=prev&oldid=…
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2012-01-16 16:25
Message:
Just a note: the example you give only has an interwiki so it's not visible
whether it uses only one line for all interwikis or one per interwiki.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-01-15 12:22
Message:
see version history and test edits at wiktionary:pl:user:xqt
or this diff link
http://pl.wiktionary.org/w/index.php?title=Wikipedysta%3AXqt&action=history…
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-01-15 11:50
Message:
We have the two switches in the family file. Time to use it I guess.
# attop is a list of languages that prefer to have the interwiki
# links at the top of the page.
self.interwiki_attop = []
# on_one_line is a list of languages that want the interwiki links
# one-after-another on a single line
self.interwiki_on_one_line = []
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3474219&group_…
Bugs item #3594224, was opened at 2012-12-09 01:23
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594224&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: None
Priority: 5
Private: No
Submitted By: Mercy (wikimercy)
>Assigned to: xqt (xqt)
Summary: Commonscat.py update
Initial Comment:
Please make the following update to the source code:
commonscatTemplates = {
'hy' : (u'Վիքիպահեստ կատեգորիա', [u'Commonscat', u'Commons cat', u'Commons category']),
Thanks!
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-12-09 06:28
Message:
done in r10773
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594224&group_…
Bugs item #3594224, was opened at 2012-12-09 01:23
Message generated for change (Tracker Item Submitted) made by wikimercy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594224&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 update
Initial Comment:
Please make the following update to the source code:
commonscatTemplates = {
'hy' : (u'Վիքիպահեստ կատեգորիա', [u'Commonscat', u'Commons cat', u'Commons category']),
Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594224&group_…
Bugs item #3594132, was opened at 2012-12-08 18:20
Message generated for change (Settings changed) made by hazard-sj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594132&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: General
Group: trunk
Status: Open
Resolution: None
>Priority: 7
Private: No
Submitted By: Hazard-SJ (hazard-sj)
Assigned to: Nobody/Anonymous (nobody)
Summary: exists function (wikipedia.py) doesn't work well on Wikidata
Initial Comment:
Hello, page.exists() isn't working properly on Wikidata (for items at least, haven't checked for non-items). It always returns False.
(r10746)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594132&group_…
Bugs item #3594132, was opened at 2012-12-08 18:20
Message generated for change (Settings changed) made by hazard-sj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594132&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: General
Group: trunk
Status: Open
Resolution: None
>Priority: 8
Private: No
Submitted By: Hazard-SJ (hazard-sj)
Assigned to: Nobody/Anonymous (nobody)
Summary: exists function (wikipedia.py) doesn't work well on Wikidata
Initial Comment:
Hello, page.exists() isn't working properly on Wikidata (for items at least, haven't checked for non-items). It always returns False.
(r10746)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3594132&group_…