Patches item #2070033, was opened at 2008-08-23 20:37
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070033&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: xqt (xqt)
Summary: create library for diffs, expand userlib
Initial Comment:
Add a new library, editlib, for parsing diffs. It will parse the diff html page, extracting info like editor, time, edit summary, etc, and creating lists of the lines and words marked as added and deleted. More details can be found in the docstrings.
For use with editlib, some new functions are also added to userlib. These will get the user's registration date, the number of edits the user has made, and the number of vandalism warnings on the user's talk page.
Only Wikipedia:en is supported - some of the regular expressions rely on English text. Within that scope, I've done reasonably thorough testing on the editlib functions, and somewhat less thorough testing on the new functions for userlib.
All of this is designed for use with automated vandalism detection. I am working on a bot to do just that - User:Kalbot - but it's still in an early experimental stage. I am User:DKalkin on the English Wikipedia, and can be reached at dkalkin(a)gmail.com.
This is the first time I've submitted a patch to any sourceforge project. Apologies if I've screwed anything up.
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-04 20:44
Message:
Can you take a look at this, xqt? Thanks.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-08-21 17:05
Message:
https://jira.toolserver.org/browse/PYWP-9
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-08-21 06:48
Message:
no patchfile found
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-08-24 13:01
Message:
Logged In: YES
user_id=181280
Originator: NO
Currently SF attachment doesn't work, you can use an alternative bug
tracker hosted by Toolserver: https://jira.toolserver.org/browse/PYWP
Thanks.
----------------------------------------------------------------------
Comment By: Kalkin (dkalkin)
Date: 2008-08-23 20:45
Message:
Logged In: YES
user_id=1525955
Originator: NO
File didn't submit. Trying to figure out what went wrong...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070033&group_…
Patches item #2872584, was opened at 2009-10-04 17:07
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2872584&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: Nakor Wikipedia (nakor-wikipedia)
Assigned to: Nobody/Anonymous (nobody)
Summary: Getting correct number of contributions
Initial Comment:
When asking for user contributions, API always return "query-continue" even if the limit number of contributions has been returned (please see https://bugzilla.wikimedia.org/show_bug.cgi?id=20981 )
This patch solves the pb until the API is fixed. The patch is good for revision 7363.
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-04 20:43
Message:
r7367. Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2872584&group_…
Bugs item #2865996, was opened at 2009-09-24 21:57
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2865996&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: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Russell Blau (russblau)
Summary: No output in replace.py
Initial Comment:
>python Myreplace.py -fix:comunes -start:! -always -debug
No handlers could be found for logger "pywiki"
Very similar error as reported on:
output() is broken - ID: 2618865
http://sourceforge.net/tracker/?func=detail&atid=603138&aid=2618865&group_i…
##########TRANSCRIPT############
$python pywikibot/pagegenerators.py -cat:1918
No handlers could be found for logger "wiki.config2"
Found 1 wikipedia:fr processes running, including this one.
$
Nothing is ever printed =)
Turning on the debug parameters however prints correctly the page names:
$python pywikibot/pagegenerators.py -cat:1918 -debug
No handlers could be found for logger "wiki.config2"
Found 1 wikipedia:fr processes running, including this one.
Grippe de 1918
1918 en bande dessinée
Armistice de Moudros
Déclaration d'indépendance de la Lituanie
Guerre d'indépendance lettone
1918
[and so on...]
=)
##########################################
Using "-debug" in this case doesn't show anything more.
Using latest python version python 2.6.2 and r7292.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-09-27 04:14
Message:
The error I was getting was:
No handlers could be found for logger "pywiki"
No handlers could be found for logger "wiki.config2" was just something
similar I found. I don't seem to have the problem anymore (did a complete
delete and started over again). Everything is working now, thanks anyway !
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-09-25 16:56
Message:
I cannot replicate this bug. Are you sure you have updated _all_ of the
files in the rewrite branch to their latest SVN versions? In particular, I
do not see how the error:
No handlers could be found for logger "wiki.config2"
could ever occur, since no such logger is referenced anywhere in the SVN
code. If you have modified the code, please post the actual program that
you are running to allow diagnosis.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2865996&group_…
Bugs item #2867956, was opened at 2009-09-27 10:17
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2867956&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: Duplicate
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: imagetransfer.py does not work
Initial Comment:
While giving a command
imagetransfer.py -lang:en -tolang:uk
does not upload an image. The next text gives in output
Traceback (most recent call last):
File "D:\pywikipedia\imagetransfer.py", line 310, in <mod
main()
File "D:\pywikipedia\imagetransfer.py", line 306, in main
bot.run()
File "D:\pywikipedia\imagetransfer.py", line 252, in run
self.transferImage(imagelist[todo], debug = False)
File "D:\pywikipedia\imagetransfer.py", line 179, in tran
targetFilename = bot.run()
File "D:\pywikipedia\upload.py", line 302, in run
return self.upload_image()
File "D:\pywikipedia\upload.py", line 257, in upload_imag
success_msg = self.targetSite.mediawiki_message('succes
File "D:\pywikipedia\wikipedia.py", line 5443, in mediawi
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 656, column 165
Please help.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-10-04 20:37
Message:
fixed in r7267, r7349, 7354
duplicate to #2867449, #2865679, #2862265, #2860410
please actualize your bot
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2867956&group_…
Bugs item #2870574, was opened at 2009-09-30 10:30
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2870574&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: replace.py crashes with wikipedia.py (?)
Initial Comment:
An error occurs when my bot submit the new version of a page to the server, which has lasted for around two weeks. Due to this error, the bot will stop right after its first edit, but the page is correctly saved. The error message is as follows:
Traceback (most recent call last):
File "replace.py", line 711, in <module>
main()
File "replace.py", line 707, in main
bot.run()
File "replace.py", line 431, in run
page.put(new_text, self.editSummary)
File "c:\python26\pywikipedia\wikipedia.py", line 1448, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag
, maxTries=maxTries)
File "c:\python26\pywikipedia\wikipedia.py", line 1480, in _putPage
newPage, token, newToken, sysop, captcha, botflag, maxTries)
File "c:\python26\pywikipedia\wikipedia.py", line 1827, in _putPageOld
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\python26\pywikipedia\wikipedia.py", line 5478, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\python26\pywikipedia\wikipedia.py", line 5443, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 637, column 117
Output of python version.py:
Pywikipedia [http] trunk/pywikipedia (r7338, 2009/09/29, 20:33:35)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-10-04 20:26
Message:
fixed in r7267, r7349, r7354
duplicate to #2867449, #2865679, #2862265, #2860410
actualize your bot
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-09-30 10:33
Message:
Please try again with the following in your user-config.py:
use_api = True
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2870574&group_…
Bugs item #2865343, was opened at 2009-09-24 00:59
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2865343&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: mikeu (mu301)
Assigned to: Nobody/Anonymous (nobody)
Summary: welcome.py TypeError
Initial Comment:
...has enough edits to be welcomed
Traceback (most recent call last):
File "welcome.py", line 985, in ?
for number_user in main(settingsBot):
File "welcome.py", line 842, in main
welcom = welcomer % sign
TypeError: not all arguments converted during string formatting
Pywikipedia [http] trunk/pywikipedia (r7289, 2009/09/22, 13:27:15)
Python 2.4.4 (#1, Jan 10 2007, 01:25:01) [C]
editing on en.wikiversity.org
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-10-04 20:19
Message:
fixed in r7328 by alexsh
Please try the actual revision r7363.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2865343&group_…
Bugs item #2871107, was opened at 2009-10-01 05:59
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2871107&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: Invalid
Priority: 5
Private: No
Submitted By: borgx (stanleycia)
Assigned to: Nobody/Anonymous (nobody)
Summary: pywikipedia svn: cosmetic_changes.py crashed
Initial Comment:
cosmetic_changes.py crashed (python cosmetic_changes.py -start:!)
>>> 297 SM <<<
No changes were necessary in 297 SM
>>> 298 <<<
No changes were necessary in 298
>>> 298 SM <<<
No changes were necessary in 298 SM
>>> 299 <<<
No changes were necessary in 299
>>> 299 SM <<<
No changes were necessary in 299 SM
>>> 29 (angka) <<<
No changes were necessary in 29 (angka)
Getting 60 pages from wikipedia:id...
>>> 29 Agustus <<<
No changes were necessary in 29 Agustus
>>> 29 April <<<
No changes were necessary in 29 April
>>> 29 Comae Berenices <<<
No changes were necessary in 29 Comae Berenices
>>> 29 Cygni <<<
No changes were necessary in 29 Cygni
>>> 29 Desember <<<
No changes were necessary in 29 Desember
>>> 29 Februari <<<
No changes were necessary in 29 Februari
>>> 29 Januari <<<
No changes were necessary in 29 Januari
>>> 29 Juli <<<
No changes were necessary in 29 Juli
>>> 29 Juni <<<
No changes were necessary in 29 Juni
>>> 29 Leonis Minoris <<<
- '''29 Leonis Minoris''' adalah salah satu bintang di rasi [[Leo Minor]]. Bintang ini berada pada jarak 413 [[tahun cahaya]] dari [[Bumi]] dan ber[[magnitudo]] 6.49.
+ '''29 Leonis Minoris''' adalah salah satu bintang di rasi [[Leo Minor]]. Bintang ini berada pada jarak 413 [[tahun cahaya]] dari [[Bumi]] dan ber[[magnitudo]] 6.49.
- ==Grup==
+ == Grup ==
- ==Referensi==
+ == Referensi ==
Do you want to accept these changes? ([y]es, [N]o, [a]ll) a
NOTE: You have new messages on wikipedia:id
Changing page [[29 Leonis Minoris]]
Traceback (most recent call last):
File "cosmetic_changes.py", line 513, in <module>
main()
File "cosmetic_changes.py", line 509, in main
bot.run()
File "cosmetic_changes.py", line 458, in run
self.treat(page)
File "cosmetic_changes.py", line 445, in treat
page.put(changedText)
File "/pybotsvn/wikipedia.py", line 1448, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries)
File "/pybotsvn/wikipedia.py", line 1480, in _putPage
newPage, token, newToken, sysop, captcha, botflag, maxTries)
File "/pybotsvn/wikipedia.py", line 1827, in _putPageOld
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "/pybotsvn/wikipedia.py", line 5478, in has_mediawiki_message
v = self.mediawiki_message(key)
File "/pybotsvn/wikipedia.py", line 5443, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 630, column 171
administrator@pybot1:/pybotsvn$ Kategori:A Series of Unfortunate Events
administrator@pybot1:/pybotsvn$ svn up
Fetching external item into 'spelling'
External at revision 7339.
At revision 7339.
administrator@pybot1:/pybotsvn$ cd /pybot2
administrator@pybot1:/pybot2$ ls cosm*
cosmetic_changes.py cosmetic_changes.pyc
administrator@pybot1:/pybot2$ python cosmetic_changes.py -start:A
ATTENTION: You can run this script as a stand-alone for testing purposes.
However, the changes are that are made are only minor, and other users
might get angry if you fill the version histories and watchlists with such
irrelevant changes.
Do you really want to continue? ([y]es, [N]o) y
Retrieving Allpages special page for wikipedia:id from A, namespace 0
NOTE: You have new messages on wikipedia:id
Couldn't extract allpages special page. Make sure you're using MonoBook skin.
administrator@pybot1:/pybot2$
login as: administrator
administrator(a)10.10.8.120's password:
Linux pybot1 2.6.22-14-server #1 SMP Sun Oct 14 23:34:23 GMT 2007 i686
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Thu Oct 1 07:52:28 2009 from 10.10.8.251
administrator@pybot1:~$ cd /pybotsvn
administrator@pybot1:/pybotsvn$ svn up
Fetching external item into 'spelling'
External at revision 7339.
At revision 7339.
administrator@pybot1:/pybotsvn$ python cosmetic_changes.py -start:A
ATTENTION: You can run this script as a stand-alone for testing purposes.
However, the changes are that are made are only minor, and other users
might get angry if you fill the version histories and watchlists with such
irrelevant changes.
Do you really want to continue? ([y]es, [N]o) y
Getting 60 pages from wikipedia:id...
>>> A <<<
No changes were necessary in A
>>> A&E <<<
No changes were necessary in A&E
>>> A&E Network <<<
No changes were necessary in A&E Network
>>> A&M Records <<<
+ [[fi:A&M Records]]
+ [[hu:A&M Records]]
+ [[ja:A&Mã¬ã³ã¼ã]]
- [[hu:A&M Records]]
- [[ja:A&Mã¬ã³ã¼ã]]
- [[fi:A&M Records]]
Do you want to accept these changes? ([y]es, [N]o, [a]ll) a
NOTE: You have new messages on wikipedia:id
Changing page [[A&M Records]]
Traceback (most recent call last):
File "cosmetic_changes.py", line 513, in <module>
main()
File "cosmetic_changes.py", line 509, in main
bot.run()
File "cosmetic_changes.py", line 458, in run
self.treat(page)
File "cosmetic_changes.py", line 445, in treat
page.put(changedText)
File "/pybotsvn/wikipedia.py", line 1448, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries)
File "/pybotsvn/wikipedia.py", line 1480, in _putPage
newPage, token, newToken, sysop, captcha, botflag, maxTries)
File "/pybotsvn/wikipedia.py", line 1827, in _putPageOld
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "/pybotsvn/wikipedia.py", line 5478, in has_mediawiki_message
v = self.mediawiki_message(key)
File "/pybotsvn/wikipedia.py", line 5443, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 630, column 171
administrator@pybot1:/pybotsvn$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7338, 2009/09/29, 20:33:35)
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
administrator@pybot1:/pybotsvn$
administrator@pybot1:/pybotsvn$
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-10-04 17:37
Message:
duplicate to #2867449, #2865679, #2862265, #2860410
fixed in r7267, r7349, r7354
please actualize your Bot
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2871107&group_…
Bugs item #2872580, was opened at 2009-10-04 11:02
Message generated for change (Comment added) made by nakor-wikipedia
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2872580&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: 4
Private: No
Submitted By: Nakor Wikipedia (nakor-wikipedia)
Assigned to: Nobody/Anonymous (nobody)
Summary: userlib._apiContributions returns too much
Initial Comment:
Try to run
contribs=user.contributions(1)
You get ALL user contirbutions, not just one
----------------------------------------------------------------------
>Comment By: Nakor Wikipedia (nakor-wikipedia)
Date: 2009-10-04 11:08
Message:
Please patch #2872584
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2872580&group_…
Patches item #2872584, was opened at 2009-10-04 11:07
Message generated for change (Tracker Item Submitted) made by nakor-wikipedia
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2872584&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: Nakor Wikipedia (nakor-wikipedia)
Assigned to: Nobody/Anonymous (nobody)
Summary: Getting correct number of contributions
Initial Comment:
When asking for user contributions, API always return "query-continue" even if the limit number of contributions has been returned (please see https://bugzilla.wikimedia.org/show_bug.cgi?id=20981 )
This patch solves the pb until the API is fixed. The patch is good for revision 7363.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2872584&group_…
Bugs item #2872580, was opened at 2009-10-04 11:02
Message generated for change (Tracker Item Submitted) made by nakor-wikipedia
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2872580&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: Nakor Wikipedia (nakor-wikipedia)
Assigned to: Nobody/Anonymous (nobody)
Summary: userlib._apiContributions returns too much
Initial Comment:
Try to run
contribs=user.contributions(1)
You get ALL user contirbutions, not just one
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2872580&group_…