Patches item #3108310, was opened at 2010-11-13 08:42
Message generated for change (Tracker Item Submitted) made by lankier
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3108310&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: lankier (lankier)
Assigned to: Nobody/Anonymous (nobody)
Summary: parameter expandtemplates for Page.linkedPages
Initial Comment:
Added parameter expandtemplates for Page.linkedPages. I think it is a usefull parameter.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3108310&group_…
Patches item #3107636, was opened at 2010-11-12 01:13
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3107636&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: Lars Aronsson (aronsson)
>Assigned to: xqt (xqt)
Summary: Category_redirect for sv.wikipedia
Initial Comment:
The following patch makes pywikipediabot recognize the two category redirect templates in use on the Swedish language Wikipedia:
$ svn diff families/wikipedia_family.py
Index: families/wikipedia_family.py
===================================================================
--- families/wikipedia_family.py (revision 8718)
+++ families/wikipedia_family.py (working copy)
@@ -719,6 +719,8 @@
u"Catredirect",),
'sq': (u'Kategori e zhvendosur',
u'Category redirect',),
+ 'sv': (u'Kategoriomdirigering'
+ u'Omdirigering kategori',),
'tl': (u'Category redirect',),
'tr': (u'Kategori yönlendirme',
u'Kat redir',),
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-11-12 15:58
Message:
done in r8721
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3107636&group_…
Patches item #3107636, was opened at 2010-11-12 01:13
Message generated for change (Tracker Item Submitted) made by aronsson
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3107636&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: Lars Aronsson (aronsson)
Assigned to: Nobody/Anonymous (nobody)
Summary: Category_redirect for sv.wikipedia
Initial Comment:
The following patch makes pywikipediabot recognize the two category redirect templates in use on the Swedish language Wikipedia:
$ svn diff families/wikipedia_family.py
Index: families/wikipedia_family.py
===================================================================
--- families/wikipedia_family.py (revision 8718)
+++ families/wikipedia_family.py (working copy)
@@ -719,6 +719,8 @@
u"Catredirect",),
'sq': (u'Kategori e zhvendosur',
u'Category redirect',),
+ 'sv': (u'Kategoriomdirigering'
+ u'Omdirigering kategori',),
'tl': (u'Category redirect',),
'tr': (u'Kategori yönlendirme',
u'Kat redir',),
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3107636&group_…
Bugs item #3086562, was opened at 2010-10-13 12:20
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3086562&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: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: {{Disambig}} bug
Initial Comment:
Not every {{disambig}} template means disambiguation. see [[la:Europe]].
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-11-07 21:49
Message:
fixed in r8710
----------------------------------------------------------------------
Comment By: JAn (jandudik)
Date: 2010-10-13 13:19
Message:
And why are not recognized as disambigs [[zh:FIS]] or [[ms:Fi]], where is
{{disambig}} too?
----------------------------------------------------------------------
Comment By: JAn (jandudik)
Date: 2010-10-13 13:17
Message:
But this template is here used for long time and now there is problem with
it.
Yes, it's possible to rename this template, but it must do somebody who
knows this language and community must be informed.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-10-13 12:45
Message:
Not a good idea. Everybody would expect a disambig with that template on
all sites. On most wikis there are redirects to an other redirect template
and often this is forgotten to place on MediaWiki:Disambiguationspage
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3086562&group_…
Patches item #3092870, was opened at 2010-10-22 14:26
Message generated for change (Settings changed) made by lankier
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3092870&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: lankier (lankier)
Assigned to: xqt (xqt)
Summary: non ascii in system messages and max retry
Initial Comment:
This patch fixed two issues:
1. Ubuntu has non ascii in system messages.
Test:
$ sudo ifconfig eth0 down
$ cat test.py
import wikipedia
site = wikipedia.getSite()
page = wikipedia.Page(site, 'S')
text = page.get()
$ LANG=ru_RU.utf8 python test.py
Error downloading data: 'ascii' codec can't decode byte 0xd0 in position 27: ordinal not in range(128)
Request ru:/w/api.php?inprop=protection%7Ctalkid%7Csubjectid%7Curl%7Creadable&format=json&rvprop=content%7Cids%7Cflags%7Ctimestamp%7Cuser%7Ccomment%7Csize&prop=revisions%7Cinfo&titles=S&rvlimit=1&action=query
Retrying in 1 minutes...
^C
After fix (added "e = unicode(str(e), locale.getpreferredencoding())"):
$ LANG=ru_RU.utf8 python test.py
<urlopen error [Errno 101] Сеть недоступна>
WARNING: Could not open [...]
2. Added raise MaxTriesExceededError when max tries exceeded.
----------------------------------------------------------------------
>Comment By: lankier (lankier)
Date: 2010-11-07 23:44
Message:
We can't fix it in output() because we have an exception before we entered
in output().
What about just replace output(u'%s' %e) -> output(str(e)) ? it works.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-11-07 19:52
Message:
output should be fixed in output method. Would you please check the
following fix in output method:
def output(...)
...
try:
text = unicode(text, 'utf-8')
except UnicodeDecodeError:
text = unicode(text, 'iso8859-1')
replace it with
try:
text = unicode(text, 'utf-8')
except UnicodeDecodeError:
text = unicode(text, locale.getpreferredencoding())
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3092870&group_…
Feature Requests item #3094655, was opened at 2010-10-25 10:26
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3094655&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: interwiki
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: edit conflicts
Initial Comment:
It happens sometimes that edit conflicts occur; this may be on pages with lots of interwiki links, in particular.
Updating [[xx:Page]] via API
Saving [[xx:Page]] failed: An edit conflict occurred
Is it possible to tell the bot to stop trying to update the links for the given page if it encounters, say, 3 or more edit conflicts in a row for that page in different language wikis? this would save time and server load
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3094655&group_…
Feature Requests item #3104703, was opened at 2010-11-07 17:57
Message generated for change (Tracker Item Submitted) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3104703&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
Priority: 5
Private: No
Submitted By: Bináris (binbot)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add new section to a page
Initial Comment:
Hi! Wikipedia.Page has now to saving methods, put(newtext) and put_async(newtext). I ask you to introduce a third one: newsection(title,newtext). It should work as ...action=edit§ion=new, so we shouldn't bother the old content of the page to add something to the end.
Thanks a lot!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3104703&group_…
Patches item #3092870, was opened at 2010-10-22 12:26
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3092870&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: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: lankier (lankier)
Assigned to: xqt (xqt)
Summary: non ascii in system messages and max retry
Initial Comment:
This patch fixed two issues:
1. Ubuntu has non ascii in system messages.
Test:
$ sudo ifconfig eth0 down
$ cat test.py
import wikipedia
site = wikipedia.getSite()
page = wikipedia.Page(site, 'S')
text = page.get()
$ LANG=ru_RU.utf8 python test.py
Error downloading data: 'ascii' codec can't decode byte 0xd0 in position 27: ordinal not in range(128)
Request ru:/w/api.php?inprop=protection%7Ctalkid%7Csubjectid%7Curl%7Creadable&format=json&rvprop=content%7Cids%7Cflags%7Ctimestamp%7Cuser%7Ccomment%7Csize&prop=revisions%7Cinfo&titles=S&rvlimit=1&action=query
Retrying in 1 minutes...
^C
After fix (added "e = unicode(str(e), locale.getpreferredencoding())"):
$ LANG=ru_RU.utf8 python test.py
<urlopen error [Errno 101] Сеть недоступна>
WARNING: Could not open [...]
2. Added raise MaxTriesExceededError when max tries exceeded.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-11-07 17:52
Message:
output should be fixed in output method. Would you please check the
following fix in output method:
def output(...)
...
try:
text = unicode(text, 'utf-8')
except UnicodeDecodeError:
text = unicode(text, 'iso8859-1')
replace it with
try:
text = unicode(text, 'utf-8')
except UnicodeDecodeError:
text = unicode(text, locale.getpreferredencoding())
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3092870&group_…
Patches item #3092870, was opened at 2010-10-22 12:26
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3092870&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: lankier (lankier)
>Assigned to: xqt (xqt)
Summary: non ascii in system messages and max retry
Initial Comment:
This patch fixed two issues:
1. Ubuntu has non ascii in system messages.
Test:
$ sudo ifconfig eth0 down
$ cat test.py
import wikipedia
site = wikipedia.getSite()
page = wikipedia.Page(site, 'S')
text = page.get()
$ LANG=ru_RU.utf8 python test.py
Error downloading data: 'ascii' codec can't decode byte 0xd0 in position 27: ordinal not in range(128)
Request ru:/w/api.php?inprop=protection%7Ctalkid%7Csubjectid%7Curl%7Creadable&format=json&rvprop=content%7Cids%7Cflags%7Ctimestamp%7Cuser%7Ccomment%7Csize&prop=revisions%7Cinfo&titles=S&rvlimit=1&action=query
Retrying in 1 minutes...
^C
After fix (added "e = unicode(str(e), locale.getpreferredencoding())"):
$ LANG=ru_RU.utf8 python test.py
<urlopen error [Errno 101] Сеть недоступна>
WARNING: Could not open [...]
2. Added raise MaxTriesExceededError when max tries exceeded.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-11-07 17:52
Message:
output should be fixed in output method. Would you please check the
following fix in output method:
def output(...)
...
try:
text = unicode(text, 'utf-8')
except UnicodeDecodeError:
text = unicode(text, 'iso8859-1')
replace it with
try:
text = unicode(text, 'utf-8')
except UnicodeDecodeError:
text = unicode(text, locale.getpreferredencoding())
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3092870&group_…
Patches item #3096196, was opened at 2010-10-27 08:30
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3096196&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: lankier (lankier)
>Assigned to: xqt (xqt)
Summary: Page.get(expandtemplates=True) fix
Initial Comment:
Page.get() saves the result of a previous request. But it is incorrect for expandtemplates=True.
Test:
import wikipedia
site = wikipedia.getSite()
page = wikipedia.Page(site, 'Pop')
txt1 = page.get(expandtemplates=False)
txt2 = page.get(expandtemplates=True)
print txt1 == txt2 # False, it`s Okay
page = wikipedia.Page(site, 'Pop')
txt2 = page.get(expandtemplates=True)
txt1 = page.get(expandtemplates=False)
print txt1 == txt2 # True, it`s a bug
This patch fixes it
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-11-07 17:19
Message:
done in r8706. thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3096196&group_…