Andre Engels | 1 Jun 2007 07:41
Picon

pywikipedia interwiki.py,1.376,1.377

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22913

Modified Files:
	interwiki.py 
Log Message:
Adding a 'give up' option when going through languages and getting asked whether to do changes

Index: interwiki.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/interwiki.py,v
retrieving revision 1.376
retrieving revision 1.377
diff -C2 -d -r1.376 -r1.377
*** interwiki.py	30 May 2007 21:04:48 -0000	1.376
--- interwiki.py	1 Jun 2007 05:41:41 -0000	1.377
***************
*** 263,266 ****
--- 263,271 ----
      """

+ class GiveUpOnPage(wikipedia.Error):
+     """
+     The user chose not to work on this page and its linked pages any more.
+     """
+ 
  msg = {
      'af': (u'robot ', u'Bygevoeg', u'Verwyder', u'Verander'),
***************
*** 892,895 ****
(Continue reading)

SourceForge.net | 1 Jun 2007 11:40
Picon
Favicon

[ pywikipediabot-Patches-1729378 ] interwiki.py - add command line option -hintnobracket

Patches item #1729378, was opened at 2007-06-01 09:40
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1729378&group_id=93107

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: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py - add command line option -hintnobracket

Initial Comment:
Often you have page titles like "xyzname (specialcase)" in your language while others only have "xyzname".

In English, there are many page titles like "abc (disambiguation)", while other languages use "abc" for
their disambiguations, and vice versa.

Both such cases can be more easily dealt with, when -askhint, -same, etc. automatically ignore the "
(whatever there is in brackets) " upon request

Suggestion: Add a command line option -hintnobracket which does exactly that.

Attached is a patch which works for me.
(Continue reading)

SourceForge.net | 1 Jun 2007 12:32
Picon
Favicon

[ pywikipediabot-Bugs-1615700 ] "category.py move [-inplace]" ignores some instances

Bugs item #1615700, was opened at 2006-12-14 13:03
Message generated for change (Comment added) made by purodha
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1615700&group_id=93107

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: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: "category.py move [-inplace]" ignores some instances

Initial Comment:
I observed (very few) instances when the command:

python category.py ... move -inplace -from:... -to:...

did not catch all occurences of the -from category, so that ater the run it was not empty, since some pages
belonging to it were not altered at all. I believe, replace.py did not find the category tag inside these pages.

I all such cases, the following was true, but I cannot tell, which of those (if any) is a trigger for
replace.py's erroneous behaviour:

- "move -inplace" was used.
(Continue reading)

Andre Engels | 1 Jun 2007 22:17
Picon

pywikipedia interwiki.py,1.377,1.378

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3277

Modified Files:
	interwiki.py 
Log Message:
New ar: summaries by Alnokta

Index: interwiki.py
===================================================================
RCS file: /cvsroot/pywikipediabot/pywikipedia/interwiki.py,v
retrieving revision 1.377
retrieving revision 1.378
diff -C2 -d -r1.377 -r1.378
*** interwiki.py	1 Jun 2007 05:41:41 -0000	1.377
--- interwiki.py	1 Jun 2007 20:17:12 -0000	1.378
***************
*** 267,274 ****
      The user chose not to work on this page and its linked pages any more.
      """
- 
  msg = {
      'af': (u'robot ', u'Bygevoeg', u'Verwyder', u'Verander'),
!     'ar': (u'روبوت ', u'إضافة', u'مسح', u'تعديل'),
      'be': (u'робат ', u'Дадаем',
u'Выдаляем', u'Мяняем'),
      'be-x-old': (u'робат ', u'дадаў',
u'выдаліў', u'зьмяніў'),
--- 267,273 ----
      The user chose not to work on this page and its linked pages any more.
(Continue reading)

Andre Engels | 1 Jun 2007 22:39
Picon

Bryan added

Bryan Tong Minh (Bryan on Commons) has been added as a developer.

--

-- 
Andre Engels, andreengels <at> gmail.com
ICQ: 6260644  --  Skype: a_engels

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
siebrand | 1 Jun 2007 23:50
Picon

pywikipedia threadpool.py,NONE,1.1

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6927

Added Files:
	threadpool.py 
Log Message:
New library:This module implements a threadpool which allows scripts that require 
performing concurrent jobs, an efficient and thread safe way to do this.

# (C) Bryan Tong Minh, 2007
#
# Distributed under the terms of the MIT license.

--- NEW FILE: threadpool.py ---
#!/usr/bin/python
# -*- coding: utf-8  -*-
"""
This module implements a threadpool which allows scripts that require 
performing concurrent jobs, an efficient and thread safe way to do this.

The two classes available are ThreadPool and Thread. ThreadPool is the 
controller class and contains a collection of Thread objects, which must be
subclassed.
Any thread can add a job to the ThreadPool by calling its append() method.
The pool will add this task to the jobqueue and activate a sleeping thread, if
available. In case no thread is directly available, the job will be handled by
the first free thread.

The Thread class must be subclassed and passed to the ThreadPool's constructor.
The subclass should implement a do(args) method, which will receive as its 
(Continue reading)

siebrand | 1 Jun 2007 23:52
Picon

pywikipedia checkusage.py,NONE,1.1

Update of /cvsroot/pywikipediabot/pywikipedia
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7724

Added Files:
	checkusage.py 
Log Message:
This module provides a way for users of the Wikimedia toolserver to check the 
use of images from Commons on other Wikimedia wikis. It supports both running
checkusage against the database and against the live wikis.

# (C) Bryan Tong Minh, 2007
#
# Distributed under the terms of the MIT license.

--- NEW FILE: checkusage.py ---
#!/usr/bin/python
# -*- coding: utf-8  -*-
"""
This module provides a way for users of the Wikimedia toolserver to check the 
use of images from Commons on other Wikimedia wikis. It supports both running
checkusage against the database and against the live wikis. It is very 
efficient as it only creates one HTTP connection and one MySQL connection 
during its life time. It is not suitable for multithreading!

The CheckUsage class' constructor accept as parameters the maximum number of
wikis that should be checked, an option to use it only live and the parameters
to connect to the MySQL database. The top wikis in size will be checked. The 
class provides multiple methods:

get_usage(image)
(Continue reading)

siebrand | 1 Jun 2007 23:58
Picon

pywikipedia/simplejson .cvsignore,NONE,1.1

Update of /cvsroot/pywikipediabot/pywikipedia/simplejson
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10348

Added Files:
	.cvsignore 
Log Message:
Ignore *.pyc

--- NEW FILE: .cvsignore ---
*.pyc

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Leonardo Gregianin | 2 Jun 2007 00:30

Re: Bryan added

Welcome Bryan, I think AndreasJS  
(http://sourceforge.net/users/andreasjs) also can be to developer.

Regards,
leonardo.

Quoting Andre Engels <andreengels <at> gmail.com>:

> Bryan Tong Minh (Bryan on Commons) has been added as a developer.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
SourceForge.net | 2 Jun 2007 02:43
Picon
Favicon

[ pywikipediabot-Bugs-1729765 ] interwiki.py: templates with <noinclude>

Bugs item #1729765, was opened at 2007-06-02 02:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1729765&group_id=93107

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: siebrand (siebrand)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py: templates with <noinclude>

Initial Comment:
Doing a template namespace run with interwiki.py an edit was made in fr.wikipedia[1] to a template
containing a <noinclude> and no existing interwikis. interwiki.py added the interwikis outside to
<noinclude> section, effectively adding a lot of interwiki links to pages that should not have gotten the
links. The change was reverted and all 70 (damn) wikis I could have made edits on now have to be checked for
possible errors.

Not sure if and how to fix this.

Another issue would be adding interwiki links to a template that does not contain a <noinclude> section.
Should interwiki links be added there 'as is', should they be placed within <noinclude>, or should no
changes be made at all?
(Continue reading)


Gmane