Revision: 5841
Author: cosoleto
Date: 2008-08-24 11:08:22 +0000 (Sun, 24 Aug 2008)
Log Message:
-----------
MediaWiki API doesn't accept a 'titles' parameter with 100 items.
Modified Paths:
--------------
trunk/pywikipedia/copyright_clean.py
Modified: trunk/pywikipedia/copyright_clean.py
===================================================================
--- trunk/pywikipedia/copyright_clean.py 2008-08-23 22:29:55 UTC (rev 5840)
+++ trunk/pywikipedia/copyright_clean.py 2008-08-24 11:08:22 UTC (rev 5841)
@@ -22,7 +22,6 @@
'it': u'Rimozione',
}
-#"(?m)^=== (?:<strike>)?(?:<s>)?(?:<del>)?\[\[(?::)?(.*?)(?:#.*?)?\]\]"
headC = re.compile("(?m)^=== (?:<strike>)?(?:<s>)?(?:<del>)?\[\[(?::)?(.*?)\]\]")
separatorC = re.compile('(?m)^== +')
next_headC = re.compile("(?m)^=+.*?=+")
@@ -132,10 +131,10 @@
query_results_titles = list()
query_results_revids = list()
- # No more of 100 titles at a time using old Query API
- for s in mysplit(query.ListToParam(titles), 100, "|"):
+ # No more of 50 titles at a time using API
+ for s in mysplit(query.ListToParam(titles), 50, "|"):
query_results_titles.append(simplejson.loads(query_api(('titles', s))))
- for s in mysplit(query.ListToParam(revids), 100, "|"):
+ for s in mysplit(query.ListToParam(revids), 50, "|"):
query_results_revids.append(simplejson.loads(query_api(('revids', s))))
comment_entry = list()
Patches item #2070033, was opened at 2008-08-23 20:37
Message generated for change (Comment added) made by cosoleto
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: Nobody/Anonymous (nobody)
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: 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 #2070041, was opened at 2008-08-23 20:48
Message generated for change (Settings changed) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070041&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: Kalkin (dkalkin)
Assigned to: Nobody/Anonymous (nobody)
Summary: create library for diffs, expand userlib (2)
Initial Comment:
See first attempt.
----------------------------------------------------------------------
Comment By: Kalkin (dkalkin)
Date: 2008-08-23 20:49
Message:
Logged In: YES
user_id=1525955
Originator: YES
Trying again to attach patch file...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070041&group_…
Patches item #2070928, was opened at 2008-08-24 08:03
Message generated for change (Comment added) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&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: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: category_redirect.py - update for ja locale
Initial Comment:
update for ja locale. I attached a diff file on sourceforge.
* category_redirect.py
Thanks.
----------------------------------------------------------------------
>Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-08-24 12:56
Message:
Logged In: YES
user_id=181280
Originator: NO
If SF doesn't work, you can use an alternative bug tracker hosted by
Toolserver:
https://jira.toolserver.org/browse/PYWP
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 08:50
Message:
Logged In: YES
user_id=1971526
Originator: YES
Thanks. I try to attach a dummy file. And if it fails, I will report into
the item about detail.
----------------------------------------------------------------------
Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-08-24 08:40
Message:
Logged In: YES
user_id=1963242
Originator: NO
I think this is a sourceforge bug, see
https://sourceforge.net/tracker/index.php?func=detail&aid=2070259&group_id=…
Trying to attach a test file...
----------------------------------------------------------------------
Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-08-24 08:40
Message:
Logged In: YES
user_id=1963242
Originator: NO
I think this is a sourceforge bug, see
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 08:15
Message:
Logged In: YES
user_id=1971526
Originator: YES
Retrying... Why attaching fails?
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 08:05
Message:
Logged In: YES
user_id=1971526
Originator: YES
Attached a patch file again.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&group_…
Revision: 5836
Author: mfarag
Date: 2008-08-22 20:48:00 +0000 (Fri, 22 Aug 2008)
Log Message:
-----------
Restore original comment
Modified Paths:
--------------
trunk/pywikipedia/fixes.py
Modified: trunk/pywikipedia/fixes.py
===================================================================
--- trunk/pywikipedia/fixes.py 2008-08-22 19:22:07 UTC (rev 5835)
+++ trunk/pywikipedia/fixes.py 2008-08-22 20:48:00 UTC (rev 5836)
@@ -405,11 +405,8 @@
},
#Corrections for Arabic Wikipedia and any Arabic wiki.
+ #python replace.py -always -start:! -fix:correct-ar
- # These spelling corrections are very important for the
- # Arabic Wikipedia. Please don't remove it. The file is
- # shared between all bot operators, so it is in the repository.
-
'correct-ar': {
'regex': False,
'msg': {
Patches item #2070928, was opened at 2008-08-24 06:03
Message generated for change (Comment added) made by nightshadow28
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&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: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: category_redirect.py - update for ja locale
Initial Comment:
update for ja locale. I attached a diff file on sourceforge.
* category_redirect.py
Thanks.
----------------------------------------------------------------------
>Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 06:50
Message:
Logged In: YES
user_id=1971526
Originator: YES
Thanks. I try to attach a dummy file. And if it fails, I will report into
the item about detail.
----------------------------------------------------------------------
Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-08-24 06:40
Message:
Logged In: YES
user_id=1963242
Originator: NO
I think this is a sourceforge bug, see
https://sourceforge.net/tracker/index.php?func=detail&aid=2070259&group_id=…
Trying to attach a test file...
----------------------------------------------------------------------
Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-08-24 06:40
Message:
Logged In: YES
user_id=1963242
Originator: NO
I think this is a sourceforge bug, see
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 06:15
Message:
Logged In: YES
user_id=1971526
Originator: YES
Retrying... Why attaching fails?
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 06:05
Message:
Logged In: YES
user_id=1971526
Originator: YES
Attached a patch file again.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&group_…
Patches item #2070928, was opened at 2008-08-24 08:03
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&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: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: category_redirect.py - update for ja locale
Initial Comment:
update for ja locale. I attached a diff file on sourceforge.
* category_redirect.py
Thanks.
----------------------------------------------------------------------
>Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-08-24 08:40
Message:
Logged In: YES
user_id=1963242
Originator: NO
I think this is a sourceforge bug, see
https://sourceforge.net/tracker/index.php?func=detail&aid=2070259&group_id=…
Trying to attach a test file...
----------------------------------------------------------------------
Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-08-24 08:40
Message:
Logged In: YES
user_id=1963242
Originator: NO
I think this is a sourceforge bug, see
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 08:15
Message:
Logged In: YES
user_id=1971526
Originator: YES
Retrying... Why attaching fails?
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 08:05
Message:
Logged In: YES
user_id=1971526
Originator: YES
Attached a patch file again.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&group_…
Patches item #2070928, was opened at 2008-08-24 08:03
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&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: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: category_redirect.py - update for ja locale
Initial Comment:
update for ja locale. I attached a diff file on sourceforge.
* category_redirect.py
Thanks.
----------------------------------------------------------------------
>Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-08-24 08:40
Message:
Logged In: YES
user_id=1963242
Originator: NO
I think this is a sourceforge bug, see
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 08:15
Message:
Logged In: YES
user_id=1971526
Originator: YES
Retrying... Why attaching fails?
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 08:05
Message:
Logged In: YES
user_id=1971526
Originator: YES
Attached a patch file again.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&group_…
Patches item #2070928, was opened at 2008-08-24 06:03
Message generated for change (Comment added) made by nightshadow28
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&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: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: category_redirect.py - update for ja locale
Initial Comment:
update for ja locale. I attached a diff file on sourceforge.
* category_redirect.py
Thanks.
----------------------------------------------------------------------
>Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 06:15
Message:
Logged In: YES
user_id=1971526
Originator: YES
Retrying... Why attaching fails?
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 06:05
Message:
Logged In: YES
user_id=1971526
Originator: YES
Attached a patch file again.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&group_…
Patches item #2070928, was opened at 2008-08-24 06:03
Message generated for change (Comment added) made by nightshadow28
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&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: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: category_redirect.py - update for ja locale
Initial Comment:
update for ja locale. I attached a diff file on sourceforge.
* category_redirect.py
Thanks.
----------------------------------------------------------------------
>Comment By: Nightshadow28 (nightshadow28)
Date: 2008-08-24 06:05
Message:
Logged In: YES
user_id=1971526
Originator: YES
Attached a patch file again.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2070928&group_…