Revision: 4733
Author: rotem
Date: 2007-12-18 17:48:42 +0000 (Tue, 18 Dec 2007)
Log Message:
-----------
Pass unicode, not string, to wikipedia.output.
Modified Paths:
--------------
trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py
===================================================================
--- trunk/pywikipedia/pagegenerators.py 2007-12-18 17:46:49 UTC (rev 4732)
+++ trunk/pywikipedia/pagegenerators.py 2007-12-18 17:48:42 UTC (rev 4733)
@@ -629,7 +629,7 @@
self.queue.put(refpage)
self.queue.put(None) # to signal end of list
except Exception, e:
- wikipedia.output(str(e))
+ wikipedia.output(unicode(e))
self.queue.put(None) # to signal end of list
def PreloadingGenerator(generator, pageNumber=60):
Bugs item #1850347, was opened at 2007-12-14 00:07
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1850347&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: Problems with images in categories
Initial Comment:
I needed to change line 248 of catlib.py from
yield ARTICLE, wikipedia.ImagePage(self.site(), "Image:%s" % title)
to
yield ARTICLE, wikipedia.ImagePage(self.site(), "%s" % title)
because otherwise the call of anycat.articles() yielded pages like [[Bild:Bild:Nettes_Bild.jpg]]
I don't know whether this was the right place to fix the problem.
My view of the sources was updated today.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-18 19:36
Message:
Logged In: YES
user_id=1327030
Originator: NO
You are right. Fixed in r4730.
----------------------------------------------------------------------
Comment By: Bernhard Mayr (falk_steinhauer)
Date: 2007-12-16 15:07
Message:
Logged In: YES
user_id=1810075
Originator: NO
MediaWiki: 1.9.4
PHP: 5.2.4 (apache2handler)
MySQL: 4.1.20
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-15 15:03
Message:
Logged In: YES
user_id=1327030
Originator: NO
In the latest version of MediaWiki, this works properly. Which version of
MediaWiki do you use?
----------------------------------------------------------------------
Comment By: Bernhard Mayr (falk_steinhauer)
Date: 2007-12-14 00:08
Message:
Logged In: YES
user_id=1810075
Originator: NO
I reported the bug.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1850347&group_…
Revision: 4730
Author: rotem
Date: 2007-12-18 17:36:07 +0000 (Tue, 18 Dec 2007)
Log Message:
-----------
(bug 1850347) Compatibility with images in categories.
Modified Paths:
--------------
trunk/pywikipedia/catlib.py
Modified: trunk/pywikipedia/catlib.py
===================================================================
--- trunk/pywikipedia/catlib.py 2007-12-18 17:20:11 UTC (rev 4729)
+++ trunk/pywikipedia/catlib.py 2007-12-18 17:36:07 UTC (rev 4730)
@@ -247,7 +247,10 @@
if Rimage:
# For MediaWiki versions where images work through galleries
for title in Rimage.findall(txt):
- yield ARTICLE, wikipedia.ImagePage(self.site(), "Image:%s" % title)
+ # In some MediaWiki versions, the titles contain the namespace,
+ # but they don't in other (newer) versions. Use the ImagePage's
+ # defaultNamespace feature to get everything correctly.
+ 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
Bugs item #1830920, was opened at 2007-11-13 10:10
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1830920&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: "replace.py -nocase -excepttext" Unicode AttributeError
Initial Comment:
"python replace.py -start:! -nocase -excepttext:42 foo bar" crashes :
Checked for running processes. 2 processes currently running, including the current process.
Retrieving Allpages special page for wikipedia:fr from %21, namespace 0
Getting 50 pages from wikipedia:fr...
Traceback (most recent call last):
File "replace.py", line 556, in <module>
main()
File "replace.py", line 552, in main
bot.run()
File "replace.py", line 299, in run
if self.isTextExcepted(original_text):
File "replace.py", line 259, in isTextExcepted
if exc.search(original_text):
AttributeError: 'unicode' object has no attribute 'search'
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-18 19:20
Message:
Logged In: YES
user_id=1327030
Originator: NO
I found the problem and fixed it in r4729.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-17 22:31
Message:
Logged In: YES
user_id=1327030
Originator: NO
Reverted in r4727. This should be thought of again, as exceptions seems to
include both regexps and strings.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-11-15 16:28
Message:
Logged In: YES
user_id=1327030
Originator: NO
Fixed in r4557.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-11-14 20:46
Message:
Logged In: NO
I would add that a call to replace.py with -nocase and one or more of the
(-excepttext, -excepttitle and -excepttitle parameters) will cause the same
behavior.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1830920&group_…
Patches item #1850275, was opened at 2007-12-13 20:26
Message generated for change (Settings changed) made by warddr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1850275&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: Accepted
Priority: 5
Private: No
Submitted By: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: message tranalation update
Initial Comment:
as title.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-15 13:46
Message:
Logged In: YES
user_id=1327030
Originator: NO
Applied in r4711.
----------------------------------------------------------------------
Comment By: Alex S.H. Lin (lin4h)
Date: 2007-12-14 05:38
Message:
Logged In: YES
user_id=1902991
Originator: YES
File Added: langupdate.patch
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1850275&group_…
Patches item #1852216, was opened at 2007-12-17 11:34
Message generated for change (Comment added) made by warddr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1852216&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: Purodha B Blissenbach (purodha)
>Assigned to: Warddr (warddr)
Summary: additinal language texts - standardize_interwiki.py
Initial Comment:
Here are three additional language texts for standardize_interwiki.py
See attached svn diff file.
----------------------------------------------------------------------
>Comment By: Warddr (warddr)
Date: 2007-12-18 12:11
Message:
Logged In: YES
user_id=1741827
Originator: NO
fixed
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1852216&group_…