Hi Cosoleto. Thank you for picking this up.
It appears as if something is still wrong. When I execute the following
commands, it does appear to identify category members of type image, but is
not able to change the description of it (?). See below.
Siebrand
D:\py\commons-pywikipedia>category.py move -from:London_monuments
-to:Monuments_in_London
Checked for running processes. 1 processes currently running, including the
current process.
Reading dump from category.dump.bz2
Getting [[Category:London monuments]]...
Getting 49 pages from commons:commons...
ERROR: [[2005-06-29 - United Kingdom - England - London - Royal Hospital
Chelsea - If I forget thee do not for
get me.jpg]] is not in category Category:London monuments!
ERROR: [[2005-07-10 - United Kingdom - England - London - Charing Cross -
Eleanor cross.jpg]] is not in catego
ry Category:London monuments!
ERROR: [[Big-Ben-jwm.jpg]] is not in category Category:London monuments!
[SNIP]
ERROR: [[Westminster king george v statue 1.jpg]] is not in category
Category:London monuments!
There are no subcategories in category Category:London monuments
Sleeping for 5.6 seconds, 2007-09-02 12:06:24
Target page Category:Monuments in London already exists!
Dumping to category.dump.bz2, please wait...
-----Oorspronkelijk bericht-----
Van: pywikipedia-l-bounces(a)lists.wikimedia.org
[mailto:pywikipedia-l-bounces@lists.wikimedia.org] Namens
cosoleto(a)mayflower.knams.wikimedia.org
Verzonden: zondag 2 september 2007 11:58
Aan: pywikipedia-l(a)lists.wikimedia.org
Onderwerp: [Pywikipedia-l] SVN: [4175] trunk/pywikipedia/catlib.py
Revision: 4175
Author: cosoleto
Date: 2007-09-02 09:58:11 +0000 (Sun, 02 Sep 2007)
Log Message:
-----------
yield ImagePage class, not Page
Modified Paths:
--------------
trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py
===================================================================
--- trunk/pywikipedia/catlib.py 2007-09-02 09:43:45 UTC (rev 4174)
+++ trunk/pywikipedia/catlib.py 2007-09-02 09:58:11 UTC (rev 4175)
@@ -238,7 +238,7 @@
if Rimage:
# For MediaWiki versions where images work through
galleries
for title in Rimage.findall(txt):
- yield ARTICLE, wikipedia.Page(self.site(), title)
+ yield ARTICLE, wikipedia.ImagePage(self.site(),
+ title)
# try to find a link to the next list page
# If skippedCategoryDescription is False, then there are no
pages
# or subcategories, so there cannot be a next list page
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/pywikipedia-l