Patches item #3094378, was opened at 2010-10-24 23:17
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3094378&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: rewrite
Group: None
>Status: Pending
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: halopedia_family.py
Initial Comment:
Pywikipedia family file for Halopedia (www.halopedian.com)
Tested with no issues (so far).
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-11-07 16:12
Message:
This family file is not valid. See
http://www.halopedian.com/api.php?action=query&meta=siteinfo&siprop=general…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3094378&group_…
Patches item #3096561, was opened at 2010-10-27 17:57
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3096561&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: ru-translation for imagetransfer.py
Initial Comment:
ru-translation in attachment
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-11-07 15:59
Message:
done in r8705
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3096561&group_…
Bugs item #3104529, was opened at 2010-11-07 10:18
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3104529&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: 2
Private: No
Submitted By: Bináris (binbot)
>Assigned to: xqt (xqt)
Summary: Help bug in replace.py
Initial Comment:
In replace.py r8700, line 135:
Please type "replace.py | more"
should be:
Please type "replace.py -help | more"
This was my mistake, sorry.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-11-07 13:29
Message:
done in r8704
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3104529&group_…
Bugs item #3104529, was opened at 2010-11-07 10:18
Message generated for change (Settings changed) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3104529&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: 2
Private: No
Submitted By: Bináris (binbot)
Assigned to: Nobody/Anonymous (nobody)
Summary: Help bug in replace.py
Initial Comment:
In replace.py r8700, line 135:
Please type "replace.py | more"
should be:
Please type "replace.py -help | more"
This was my mistake, sorry.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3104529&group_…
Bugs item #3104529, was opened at 2010-11-07 10:18
Message generated for change (Tracker Item Submitted) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3104529&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: Bináris (binbot)
Assigned to: Nobody/Anonymous (nobody)
Summary: Help bug in replace.py
Initial Comment:
In replace.py r8700, line 135:
Please type "replace.py | more"
should be:
Please type "replace.py -help | more"
This was my mistake, sorry.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3104529&group_…
Bugs item #3092329, was opened at 2010-10-21 21:26
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3092329&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: Dr. Trigon (drtrigon)
Assigned to: xqt (xqt)
Summary: KeyError in userlib.User.contributions
Initial Comment:
Hello all
This error occured to me during a try to get contributions of user IWorld:
Traceback (most recent call last):
File "sum_disc.py", line 1288, in <module>
main()
File "sum_disc.py", line 1284, in main
bot.run()
File "sum_disc.py", line 341, in run
self.checkRecentEdits()
File "sum_disc.py", line 566, in checkRecentEdits
usersumList = [p[0].title() for p in self._user.contributions(limit = count)]
File "/data/toolserver/pywikipedia/userlib.py", line 299, in contributions
contrib['revid'], ts, contrib['comment']
KeyError: 'comment'
The content of contrib:
{u'pageid': 5698070, u'title': u'Wikipedia:Vandalismusmeldung', u'timestamp': u'2010-10-20T11:58:45Z', u'revid': 80498587, u'user': u'IWorld', u'ns': 4, u'commenthidden': u''}
As you can see the 'comment' item is missing, but a 'commenthidden' is present. I wrote a patch to take this into account. I decided to return an u'' instead of contrib['comment'] in such a case, since in this place an unicode string is expected and thus a None or drop this item is not a good idea.
Please have a look to the attached patch.
Greetings!
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-11-06 04:17
Message:
KeyError fixed in r8701 as recommended
Maybe there are follow-ups of this bug in other scripts depending of the
comment is None
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-11-04 14:44
Message:
I disagree with the statement "an unicode string is expected and thus a
None (..) is not a good idea". The comment is hidden, which is different
from an empty comment. Using None is much more sensible.
In addition, the code can be simplified by using contrib.get('comment',
None) instead of the current if/the.
----------------------------------------------------------------------
Comment By: Dr. Trigon (drtrigon)
Date: 2010-11-04 14:06
Message:
I've taken the liberty of assigning this to you.
Should not be a big deal, but would be kind if it would be possible to
solve this... ;)
Thanks a lot!
----------------------------------------------------------------------
Comment By: Dr. Trigon (drtrigon)
Date: 2010-10-28 10:28
Message:
Also issued as:
'KeyError in userlib.User.contributions - ID: 3097185'
https://sourceforge.net/tracker/?func=detail&aid=3097185&group_id=93107&ati…
sorry for this mess - but I'm not sure which is the better place to rise
this issue...
----------------------------------------------------------------------
Comment By: Dr. Trigon (drtrigon)
Date: 2010-10-21 21:27
Message:
Sorry I forgot this info:
Pywikipedia [https] svn.toolserver.org/svnroot/drtrigon/pywikipedia (r40,
2010/10/02, 22:14:39)
Python 2.6.4 (r264:75706, Jun 4 2010, 18:20:31)
[GCC 4.4.4 20100503 (Red Hat 4.4.4-2)]
config-settings:
use_api = True
use_api_login = True
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3092329&group_…
Patches item #3097185, was opened at 2010-10-28 10:25
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3097185&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: Duplicate
Priority: 5
Private: No
Submitted By: Dr. Trigon (drtrigon)
>Assigned to: xqt (xqt)
Summary: KeyError in userlib.User.contributions
Initial Comment:
May be this one:
'KeyError in userlib.User.contributions - ID: 3092329'
http://sourceforge.net/tracker/?func=detail&aid=3092329&group_id=93107&atid…
should be issued here, since there is a patch attached.
Greetings
DrTrigon
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-11-06 04:13
Message:
fixed in r8701
see tracker 3092329
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3097185&group_…
Patches item #3093682, was opened at 2010-10-23 14:56
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3093682&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: Bináris (binbot)
>Assigned to: xqt (xqt)
Summary: Replace.py saves the titles to disk
Initial Comment:
With this patch, replace.py can save the page titles to a file for later use. The file has a dissection line after every 100th line for readability, thus an editcounter is implemented, too.
Changes:
-- Introduced two new command line argument, -save and -savenew, and an updated main() to process them
-- Updated ReplaceRobot class with two new functions and edit counter, and a new parameter
-- Extended help (description of new feature and one more example)
-- Some code wrappings to fit in 80 characters I found because I know xqt likes them :)
This seems not too atomic (sorry for that), but except code wrappings one change causes the other, so this is one rewrite.
Tested on Python 2.5.1
Known bugs:
-- Help may exceed the scrollable size of the command line window. As a matter of fact, it might exceed it previously, on my machine it was just on the limit. As a temporary solution, last line suggests to use "more".
-- Editcounter will show a greater value than number of actually edited size, if put_async fails (no feedback, and put_async my run several minutes later!)
See also these threads on pywiki-l mailing list:
-- Replace.py should save -- please comment
-- Paging the help
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-11-06 03:22
Message:
done in r8700
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2010-11-05 13:12
Message:
Would anybody please say anything about this? It is _important_, and I
think, not only for me. The patch makes the work on text replacements much
faster, and decreases the server load and the litter in edit logs. If you
have problem with the editcounter issue, please deprecate the finel output
of it. Thank you in advance.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3093682&group_…
Patches item #3093682, was opened at 2010-10-23 14:56
Message generated for change (Comment added) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3093682&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: 8
Private: No
Submitted By: Bináris (binbot)
Assigned to: Nobody/Anonymous (nobody)
Summary: Replace.py saves the titles to disk
Initial Comment:
With this patch, replace.py can save the page titles to a file for later use. The file has a dissection line after every 100th line for readability, thus an editcounter is implemented, too.
Changes:
-- Introduced two new command line argument, -save and -savenew, and an updated main() to process them
-- Updated ReplaceRobot class with two new functions and edit counter, and a new parameter
-- Extended help (description of new feature and one more example)
-- Some code wrappings to fit in 80 characters I found because I know xqt likes them :)
This seems not too atomic (sorry for that), but except code wrappings one change causes the other, so this is one rewrite.
Tested on Python 2.5.1
Known bugs:
-- Help may exceed the scrollable size of the command line window. As a matter of fact, it might exceed it previously, on my machine it was just on the limit. As a temporary solution, last line suggests to use "more".
-- Editcounter will show a greater value than number of actually edited size, if put_async fails (no feedback, and put_async my run several minutes later!)
See also these threads on pywiki-l mailing list:
-- Replace.py should save -- please comment
-- Paging the help
----------------------------------------------------------------------
>Comment By: Bináris (binbot)
Date: 2010-11-05 13:12
Message:
Would anybody please say anything about this? It is _important_, and I
think, not only for me. The patch makes the work on text replacements much
faster, and decreases the server load and the litter in edit logs. If you
have problem with the editcounter issue, please deprecate the finel output
of it. Thank you in advance.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3093682&group_…
Bugs item #3092329, was opened at 2010-10-21 21:26
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3092329&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: Dr. Trigon (drtrigon)
Assigned to: xqt (xqt)
Summary: KeyError in userlib.User.contributions
Initial Comment:
Hello all
This error occured to me during a try to get contributions of user IWorld:
Traceback (most recent call last):
File "sum_disc.py", line 1288, in <module>
main()
File "sum_disc.py", line 1284, in main
bot.run()
File "sum_disc.py", line 341, in run
self.checkRecentEdits()
File "sum_disc.py", line 566, in checkRecentEdits
usersumList = [p[0].title() for p in self._user.contributions(limit = count)]
File "/data/toolserver/pywikipedia/userlib.py", line 299, in contributions
contrib['revid'], ts, contrib['comment']
KeyError: 'comment'
The content of contrib:
{u'pageid': 5698070, u'title': u'Wikipedia:Vandalismusmeldung', u'timestamp': u'2010-10-20T11:58:45Z', u'revid': 80498587, u'user': u'IWorld', u'ns': 4, u'commenthidden': u''}
As you can see the 'comment' item is missing, but a 'commenthidden' is present. I wrote a patch to take this into account. I decided to return an u'' instead of contrib['comment'] in such a case, since in this place an unicode string is expected and thus a None or drop this item is not a good idea.
Please have a look to the attached patch.
Greetings!
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-11-04 14:44
Message:
I disagree with the statement "an unicode string is expected and thus a
None (..) is not a good idea". The comment is hidden, which is different
from an empty comment. Using None is much more sensible.
In addition, the code can be simplified by using contrib.get('comment',
None) instead of the current if/the.
----------------------------------------------------------------------
Comment By: Dr. Trigon (drtrigon)
Date: 2010-11-04 14:06
Message:
I've taken the liberty of assigning this to you.
Should not be a big deal, but would be kind if it would be possible to
solve this... ;)
Thanks a lot!
----------------------------------------------------------------------
Comment By: Dr. Trigon (drtrigon)
Date: 2010-10-28 10:28
Message:
Also issued as:
'KeyError in userlib.User.contributions - ID: 3097185'
https://sourceforge.net/tracker/?func=detail&aid=3097185&group_id=93107&ati…
sorry for this mess - but I'm not sure which is the better place to rise
this issue...
----------------------------------------------------------------------
Comment By: Dr. Trigon (drtrigon)
Date: 2010-10-21 21:27
Message:
Sorry I forgot this info:
Pywikipedia [https] svn.toolserver.org/svnroot/drtrigon/pywikipedia (r40,
2010/10/02, 22:14:39)
Python 2.6.4 (r264:75706, Jun 4 2010, 18:20:31)
[GCC 4.4.4 20100503 (Red Hat 4.4.4-2)]
config-settings:
use_api = True
use_api_login = True
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3092329&group_…