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_…
Patches item #2424422, was opened at 2008-12-13 13:34
Message generated for change (Comment added) made by rick_block
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2424422&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: Rejected
Priority: 5
Private: No
Submitted By: Rick Block (rick_block)
Assigned to: Nobody/Anonymous (nobody)
Summary: -content option for replace.py
Initial Comment:
I have a number of tools I run at en.wikipedia that download pages, manipulate the pages using tools like awk, and then upload new versions of the pages. I've implemented an option to replace.py (-content) to provide a filename containing the replacement content for a page. The svn.diff file is attached. The same option can be used to create a new page with content from a specified file as well.
----------------------------------------------------------------------
Comment By: Rick Block (rick_block)
Date: 2009-10-03 20:02
Message:
NicDumz's main comment seems to be that he doesn't quite see the point.
The basic point is that I'm not a Python programmer :). This option allows
me to read a page using the MediaWiki api (or simply curl or wget with the
"action=raw" parameter), edit the page content using whatever I'd like (I
generally use awk), and then use replace.py to submit the page back. Using
replace.py (rather than the MediaWIki api) for this provides a much nicer
surround, including things like previewing the diff which is extremely
handy. Logically I'm constructing a sort of pipe (in shell, of course)
that fetches a page, edits the page, and then puts the page. The general
pattern is sort of like:
curl "http://en.wikipedia.org/w/index.php?title=$PAGE&action=raw" |
awk -f awkscript >$PAGE.tmp
python replace.py -content:$PAGE.tmp -page:$PAGE
I haven't bothered to figure out how to do this in Python, but given the
ability to read the content from stdin (using, say, "-" as the parameter
value), I could actually do the whole thing as a pipe like this:
curl "http://en.wikipedia.org/w/index.php?title=$PAGE&action=raw" |
awk -f awkscript |
python replace.py -content:- -page:$PAGE
I have a revised version of the patch that addresses at least most of the
detailed comments. These lines:
> + new_text = new_text.replace(u'\n',u'\r\n')
> + if ( new_text == original_text ) or ( new_text ==
original_text + '\r\n'):
>
> What is this ? This doesn't look quite good (two text comparisons
instead
> of one?), it's not documented, and it doesn't look related to the patch
> topic. (does it?)
replace all LF with CRLF in the replacement text and then change the
equality comparison
so the replacement text is considered equal whether or not the original is
terminated with a CRLF
(when comparing the entire page to an entire replacement page read from a
file, the end of
line terminator must be the same - as read by replace.py the content seems
to have CRLF at
the end of each line but not necessarily the last line). If there's a
better way to accomplish either
of these in Python, please let me know.
> * While updating your patch, please also update your patch against HEAD
I think it was updated when I submitted it. I've just updated again as
well.
Since the item is closed I don't think I can upload the updated patch.
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-10-02 03:59
Message:
Rejected because of lack of response from submitter to comment on
2009-04-27 18:13 by nicdumz. Feel free to reopen after addressing the
comment given and having uploaded an updated patch.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-27 10:13
Message:
Sorry for taking so long to review this.
I'm not sure that I understand what would be the usage of that script.
Could you provide a (commandline) example, and explain maybe a bit more
what would be an interesting application of it?
In fact, I dont really understand why one would need to use replace.py,
which is a rather complex script, to simple replace all the text in a page
with an arbitrary other text:
for page in gen:
page.put(text)
does the same thing. You have to add 4 or 5 lines to handle command line
arguments, of course, but using replace.py looks a bit "overkill" =)
But maybe I'm wrong here, so please include a use case :)
On the patch itself, if you still want me to include it:
* This patch mixes tab and spaces, which is a very bad practice in Python.
Please fix this
* Please make sure that replacement_text has a default None value in the
Bot constructor. Please also append it at the _end_ of the constructor
signature, and not in the middle of the arguments list, to ensure backwards
compatibility.
* Please be a bit more verbose in the documentation of the -content
option. If you think that -content will be useful to other users, you'll
have to explain them _why_ this is useful =) A commandline example, and a
real application could help here.
* + new_text = new_text.replace(u'\n',u'\r\n')
+ if ( new_text == original_text ) or ( new_text ==
original_text + '\r\n'):
What is this ? This doesn't look quite good (two text comparisons instead
of one?), it's not documented, and it doesn't look related to the patch
topic. (does it?)
* While updating your patch, please also update your patch against HEAD
Thanks :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2424422&group_…
Bugs item #2872239, was opened at 2009-10-03 10:26
Message generated for change (Tracker Item Submitted) made by mu301
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2872239&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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: mikeu (mu301)
Assigned to: Nobody/Anonymous (nobody)
Summary: welcome.py -timeoffset:X broken
Initial Comment:
bash-3.00$ date
Sat Oct 3 10:19:41 EDT 2009
bash-3.00$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7363, 2009/10/03, 12:19:39)
Python 2.4.4 (#1, Jan 10 2007, 01:25:01) [C]
bash-3.00$ python welcome.py -random -limit:2000 -break -timeoffset:4320
Loading signature list...
Traceback (most recent call last):
File "welcome.py", line 982, in ?
bot.run()
File "welcome.py", line 786, in run
for users in self.parseNewUserLog():
File "welcome.py", line 676, in parseNewUserLog
params['lestart'] = int(now.strftime("%Y-%m-%dT%H:%M:%SZ"))
ValueError: invalid literal for int(): 2009-09-30T14:19:53Z
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2872239&group_…
Patches item #2871229, was opened at 2009-10-01 12:17
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2871229&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: JAn (jandudik)
Assigned to: Nobody/Anonymous (nobody)
Summary: commons_link.py update
Initial Comment:
In attached version:
* added cs. translation
* bugfix - link to mainpage
* bugfix - both {{commons}} and {{commonscat}} was posible to be added
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 13:27
Message:
* install TortoiseSVN (Windows) or svn (Linux)
* check out pywikipediabot
* make changes to the checked out files
* create a diff/patch. Google for more information.
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-10-02 11:18
Message:
r7345. Please attach a proper diff next time, and not a whole file.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2871229&group_…
Patches item #2424422, was opened at 2008-12-13 21:34
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2424422&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: Rejected
Priority: 5
Private: No
Submitted By: Rick Block (rick_block)
Assigned to: Nobody/Anonymous (nobody)
Summary: -content option for replace.py
Initial Comment:
I have a number of tools I run at en.wikipedia that download pages, manipulate the pages using tools like awk, and then upload new versions of the pages. I've implemented an option to replace.py (-content) to provide a filename containing the replacement content for a page. The svn.diff file is attached. The same option can be used to create a new page with content from a specified file as well.
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:59
Message:
Rejected because of lack of response from submitter to comment on
2009-04-27 18:13 by nicdumz. Feel free to reopen after addressing the
comment given and having uploaded an updated patch.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-27 18:13
Message:
Sorry for taking so long to review this.
I'm not sure that I understand what would be the usage of that script.
Could you provide a (commandline) example, and explain maybe a bit more
what would be an interesting application of it?
In fact, I dont really understand why one would need to use replace.py,
which is a rather complex script, to simple replace all the text in a page
with an arbitrary other text:
for page in gen:
page.put(text)
does the same thing. You have to add 4 or 5 lines to handle command line
arguments, of course, but using replace.py looks a bit "overkill" =)
But maybe I'm wrong here, so please include a use case :)
On the patch itself, if you still want me to include it:
* This patch mixes tab and spaces, which is a very bad practice in Python.
Please fix this
* Please make sure that replacement_text has a default None value in the
Bot constructor. Please also append it at the _end_ of the constructor
signature, and not in the middle of the arguments list, to ensure backwards
compatibility.
* Please be a bit more verbose in the documentation of the -content
option. If you think that -content will be useful to other users, you'll
have to explain them _why_ this is useful =) A commandline example, and a
real application could help here.
* + new_text = new_text.replace(u'\n',u'\r\n')
+ if ( new_text == original_text ) or ( new_text ==
original_text + '\r\n'):
What is this ? This doesn't look quite good (two text comparisons instead
of one?), it's not documented, and it doesn't look related to the patch
topic. (does it?)
* While updating your patch, please also update your patch against HEAD
Thanks :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2424422&group_…
Patches item #2777033, was opened at 2009-04-21 06:12
Message generated for change (Settings changed) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2777033&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: Rejected
Priority: 5
Private: No
Submitted By: Michael Cariaso (cariaso)
Assigned to: Nobody/Anonymous (nobody)
Summary: Show RecentChanges
Initial Comment:
clean simple code for watching the recent changes
----------------------------------------------------------------------
>Comment By: siebrand (siebrand)
Date: 2009-10-02 11:57
Message:
Rejecting this patch. It screen scrapes RC, and we do not want that in
pywikipediabot anymore - certainly not for new features. Feel free to
reopen after attaching an updated patch that uses the API.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2777033&group_…