Bugs item #2963459, was opened at 2010-03-04 16:14
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2963459&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: update disambig templates
Initial Comment:
Please add another disambig template for br.wiki and remove wrong disambig template for la.wiki. In la.wiki, 'disambig' template is actually used not to mark disambigs but to make a link to a disambig page (like 'other uses'). This confusion causes bots misbehaviour and leads to blocks.
'br': [u'Hvlstumm', u'Digejañ', u'Digejañ anvioù-badez',
- u"Digejañ lec'hanvioù", u'Digejañ anvioù-tud'],
+ u"Digejañ lec'hanvioù", u'Digejañ anvioù-tud', u'Disheñvelout'],
- 'la': [u'Discretiva', u'Disnomen', u'Disambig'],
+ 'la': [u'Discretiva', u'Disnomen'],
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-06 13:48
Message:
done in r7981
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2963459&group_…
Bugs item #2963405, was opened at 2010-03-04 15:02
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2963405&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: addinfourl instance has no attribute 'status'
Initial Comment:
% python version.py
Pywikipedia [http] trunk/pywikipedia (r7976, 2010/03/04, 05:43:35)
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)]
Connecting to Memory Alpha (MediaWiki v1.15.1)
-----
I see that a similar bug was fixed back in Nov/09 (#2893541)
Traceback (most recent call last):
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 7701, in async_put
page.put(newtext, comment, watchArticle, minorEdit, force)
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 1599, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries)
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 1631, in _putPage
newPage, token, newToken, sysop, captcha, botflag, maxTries)
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 2084, in _putPageOld
if response.status != 302 and data.strip() != u"":
AttributeError: addinfourl instance has no attribute 'status'
The fix for this is as follows:
Index: wikipedia.py
===================================================================
--- wikipedia.py (revision 7976)
+++ wikipedia.py (working copy)
@@ -2081,7 +2081,7 @@
return self._putPageOld(text, comment, watchArticle, minorEdit, newPage, token, newToken, sysop, captcha=solve)
# We are expecting a 302 to the action=view page. I'm not sure why this was removed in r5019
- if response.status != 302 and data.strip() != u"":
+ if response.code != 302 and data.strip() != u"":
# Something went wrong, and we don't know what. Show the
# HTML code that hopefully includes some error message.
output(u"ERROR: Unexpected response from wiki server.")
-----
That solves the issue for you.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-06 11:45
Message:
fıxed in r7980
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2963405&group_…
Bugs item #2929350, was opened at 2010-01-10 17:41
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2929350&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: Nobody/Anonymous (nobody)
Summary: KeyError in userlib.py
Initial Comment:
try to block a user with :
badUser = userlib.User(site=self.mySite, name="123.123.123.123")
badUser.block(expiry="2 hours", reason="did bad things", noCreate=True, onAutoblock=True, allowUsertalk=False)
You will get an KeyError. This is a patch for solving the problem.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-03-06 00:40
Message:
The API does not allow IP users. Please re-open when this changes.
userlib.py rr7979 now throws an exception when IP users are used.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-03-05 23:48
Message:
Moved to 'bugs'. The proposed solution merely hides the problem instead of
solving it.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2929350&group_…
Bugs item #2929350, was opened at 2010-01-10 17:41
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2929350&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: Accepted
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: KeyError in userlib.py
Initial Comment:
try to block a user with :
badUser = userlib.User(site=self.mySite, name="123.123.123.123")
badUser.block(expiry="2 hours", reason="did bad things", noCreate=True, onAutoblock=True, allowUsertalk=False)
You will get an KeyError. This is a patch for solving the problem.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-03-05 23:48
Message:
Moved to 'bugs'. The proposed solution merely hides the problem instead of
solving it.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2929350&group_…
Feature Requests item #2964102, was opened at 2010-03-05 20:07
Message generated for change (Tracker Item Submitted) made by p858snake
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2964102&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: p858snake (p858snake)
Assigned to: Nobody/Anonymous (nobody)
Summary: Support the use of Assert Edit
Initial Comment:
It would be nice if the use of the Assert Edit[1] extension was supported by the framework, Because for the wikis it is depolyed on (All WMF wikis) it would prevent bots from editing unlogged inif they choose to have it assert its edits.
[1]. http://www.mediawiki.org/wiki/Extension:Assert_Edit
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2964102&group_…
Bugs item #2963459, was opened at 2010-03-04 15:14
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2963459&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
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: update disambig templates
Initial Comment:
Please add another disambig template for br.wiki and remove wrong disambig template for la.wiki. In la.wiki, 'disambig' template is actually used not to mark disambigs but to make a link to a disambig page (like 'other uses'). This confusion causes bots misbehaviour and leads to blocks.
'br': [u'Hvlstumm', u'Digejañ', u'Digejañ anvioù-badez',
- u"Digejañ lec'hanvioù", u'Digejañ anvioù-tud'],
+ u"Digejañ lec'hanvioù", u'Digejañ anvioù-tud', u'Disheñvelout'],
- 'la': [u'Discretiva', u'Disnomen', u'Disambig'],
+ 'la': [u'Discretiva', u'Disnomen'],
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2963459&group_…
Bugs item #2963405, was opened at 2010-03-04 14:02
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2963405&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: addinfourl instance has no attribute 'status'
Initial Comment:
% python version.py
Pywikipedia [http] trunk/pywikipedia (r7976, 2010/03/04, 05:43:35)
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)]
Connecting to Memory Alpha (MediaWiki v1.15.1)
-----
I see that a similar bug was fixed back in Nov/09 (#2893541)
Traceback (most recent call last):
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 7701, in async_put
page.put(newtext, comment, watchArticle, minorEdit, force)
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 1599, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries)
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 1631, in _putPage
newPage, token, newToken, sysop, captcha, botflag, maxTries)
File "/Users/alex/MA/pywikipedia/wikipedia.py", line 2084, in _putPageOld
if response.status != 302 and data.strip() != u"":
AttributeError: addinfourl instance has no attribute 'status'
The fix for this is as follows:
Index: wikipedia.py
===================================================================
--- wikipedia.py (revision 7976)
+++ wikipedia.py (working copy)
@@ -2081,7 +2081,7 @@
return self._putPageOld(text, comment, watchArticle, minorEdit, newPage, token, newToken, sysop, captcha=solve)
# We are expecting a 302 to the action=view page. I'm not sure why this was removed in r5019
- if response.status != 302 and data.strip() != u"":
+ if response.code != 302 and data.strip() != u"":
# Something went wrong, and we don't know what. Show the
# HTML code that hopefully includes some error message.
output(u"ERROR: Unexpected response from wiki server.")
-----
That solves the issue for you.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2963405&group_…
Bugs item #2960436, was opened at 2010-02-28 00:26
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2960436&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
Resolution: None
Priority: 5
Private: No
Submitted By: masti (masti01)
>Assigned to: xqt (xqt)
Summary: interwiki does not resume with -continue
Initial Comment:
While running interwiki.py when an interwiki dump file does not exists the script properly saves it and you can use -continue option to restart. When it exists it will not be saved and the bot restarts using old interwiki dump so when the previous run has started.
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7972, 2010/02/27, 10:13:26)
Python 2.6.2 (r262:71600, Aug 21 2009, 12:22:21)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-04 06:51
Message:
When a dumpfile still exists the dumpf will be saved to the existing one
and the bot takes the alphabetical last pages to -continue. This could
cause to continue like a previous run after processing all pages above.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2960436&group_…
Patches item #2960331, was opened at 2010-02-27 19:53
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&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: Translations
Group: None
Status: Closed
Resolution: Accepted
Priority: 5
Private: No
Submitted By: Linar Khalitov (rubin16)
Assigned to: xqt (xqt)
Summary: featured.py +tt.wiki
Initial Comment:
in patch.
Tested - works OK
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-04 06:44
Message:
done in r7976. Thanks!
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16)
Date: 2010-03-03 20:48
Message:
ok, done, Tested - OK
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-03 20:24
Message:
I would prefer a unicode string instead of such encoding stuff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&group_…
Patches item #2960331, was opened at 2010-02-27 19:53
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&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: Linar Khalitov (rubin16)
Assigned to: xqt (xqt)
Summary: featured.py +tt.wiki
Initial Comment:
in patch.
Tested - works OK
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-04 06:44
Message:
done in r7976. Thanks!
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16)
Date: 2010-03-03 20:48
Message:
ok, done, Tested - OK
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-03 20:24
Message:
I would prefer a unicode string instead of such encoding stuff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2960331&group_…