Bugs item #1938002, was opened at 2008-04-08 10:33
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=1938002&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: incorrect ru msg in featured.py
Initial Comment:
please change summary message in featured.py for Russian from
'ru': u'Робот: исправление двойных перенаправлений',
to
'ru': u'робот: избранная статья [[%s:%s]]',
Current translation is about fixing double redirects.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1938002&group_…
Patches item #1937637, was opened at 2008-04-08 21:08
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=1937637&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: IWAI Masaharu (iwaim)
Assigned to: Nobody/Anonymous (nobody)
Summary: movepages.py: change the summary with command-line option
Initial Comment:
Movepages.py's summary is hard-coding. But there is occasionally what wants to specify the summary.
I'm running the movepages.py with this patch.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1937637&group_…
Revision: 5192
Author: russblau
Date: 2008-04-07 22:13:44 +0000 (Mon, 07 Apr 2008)
Log Message:
-----------
code cleanup
Modified Paths:
--------------
trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py
===================================================================
--- trunk/pywikipedia/pagegenerators.py 2008-04-07 17:04:34 UTC (rev 5191)
+++ trunk/pywikipedia/pagegenerators.py 2008-04-07 22:13:44 UTC (rev 5192)
@@ -708,30 +708,26 @@
def generator(self):
try:
- try:
- # this array will contain up to pageNumber pages and will be flushed
- # after these pages have been preloaded and yielded.
- somePages = []
- for page in self.wrapped_gen:
- if self.finished.isSet():
- return
- somePages.append(page)
- # We don't want to load too many pages at once using XML export.
- # We only get a maximum number at a time.
- if len(somePages) >= self.pageNumber:
- for loaded_page in self.preload(somePages):
- yield loaded_page
- somePages = []
- if somePages:
- # wrapped generator is exhausted but some pages still unloaded
- # preload remaining pages
+ # this array will contain up to pageNumber pages and will be flushed
+ # after these pages have been preloaded and yielded.
+ somePages = []
+ for page in self.wrapped_gen:
+## if self.finished.isSet():
+## return
+ somePages.append(page)
+ # We don't want to load too many pages at once using XML export.
+ # We only get a maximum number at a time.
+ if len(somePages) >= self.pageNumber:
for loaded_page in self.preload(somePages):
yield loaded_page
- except Exception, e:
- wikipedia.output(unicode(e))
- finally:
- if hasattr(self.wrapped_gen, "stop"):
- self.wrapped_gen.stop()
+ somePages = []
+ if somePages:
+ # wrapped generator is exhausted but some pages still unloaded
+ # preload remaining pages
+ for loaded_page in self.preload(somePages):
+ yield loaded_page
+ except Exception, e:
+ wikipedia.output(unicode(e))
def preload(self, page_list):
try:
Bugs item #1936913, was opened at 2008-04-07 18:59
Message generated for change (Comment added) made by mstmst
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1936913&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: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: masti (mstmst)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py crash in R5190
Initial Comment:
When starting interwiki.py with or without params a following error occurs:
>python interwiki.py
Checked for running processes. 1 processes currently running, including the current process.
Traceback (most recent call last):
File "interwiki.py", line 265, in ?
import wikipedia, config, pagegenerators, catlib
File "/home/mstelmasik/Downloads/pywikipedia/pagegenerators.py", line 731
finally:
^
SyntaxError: invalid syntax
masti
----------------------------------------------------------------------
>Comment By: masti (mstmst)
Date: 2008-04-07 19:28
Message:
Logged In: YES
user_id=1974561
Originator: YES
You're right. I forgot that my company machine is running Python 2.4.3 :)
masti
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-04-07 19:22
Message:
Logged In: YES
user_id=1963242
Originator: NO
Yes, jlerner reported that on IRC, and I fixed it in r5191.
This was caused by a try...except...finally syntax which is not valid in
python 2.4
Thanks anyway ;)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1936913&group_…
Bugs item #1936913, was opened at 2008-04-07 18:59
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1936913&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: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: masti (mstmst)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py crash in R5190
Initial Comment:
When starting interwiki.py with or without params a following error occurs:
>python interwiki.py
Checked for running processes. 1 processes currently running, including the current process.
Traceback (most recent call last):
File "interwiki.py", line 265, in ?
import wikipedia, config, pagegenerators, catlib
File "/home/mstelmasik/Downloads/pywikipedia/pagegenerators.py", line 731
finally:
^
SyntaxError: invalid syntax
masti
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-04-07 19:22
Message:
Logged In: YES
user_id=1963242
Originator: NO
Yes, jlerner reported that on IRC, and I fixed it in r5191.
This was caused by a try...except...finally syntax which is not valid in
python 2.4
Thanks anyway ;)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1936913&group_…
Revision: 5191
Author: avar
Date: 2008-04-07 17:04:34 +0000 (Mon, 07 Apr 2008)
Log Message:
-----------
Patch from Nicolas Dumazet (NicDumZ). Fixes python 2.4 support
Modified Paths:
--------------
trunk/pywikipedia/pagegenerators.py
Modified: trunk/pywikipedia/pagegenerators.py
===================================================================
--- trunk/pywikipedia/pagegenerators.py 2008-04-07 16:44:11 UTC (rev 5190)
+++ trunk/pywikipedia/pagegenerators.py 2008-04-07 17:04:34 UTC (rev 5191)
@@ -708,26 +708,27 @@
def generator(self):
try:
- # this array will contain up to pageNumber pages and will be flushed
- # after these pages have been preloaded and yielded.
- somePages = []
- for page in self.wrapped_gen:
- if self.finished.isSet():
- return
- somePages.append(page)
- # We don't want to load too many pages at once using XML export.
- # We only get a maximum number at a time.
- if len(somePages) >= self.pageNumber:
+ try:
+ # this array will contain up to pageNumber pages and will be flushed
+ # after these pages have been preloaded and yielded.
+ somePages = []
+ for page in self.wrapped_gen:
+ if self.finished.isSet():
+ return
+ somePages.append(page)
+ # We don't want to load too many pages at once using XML export.
+ # We only get a maximum number at a time.
+ if len(somePages) >= self.pageNumber:
+ for loaded_page in self.preload(somePages):
+ yield loaded_page
+ somePages = []
+ if somePages:
+ # wrapped generator is exhausted but some pages still unloaded
+ # preload remaining pages
for loaded_page in self.preload(somePages):
yield loaded_page
- somePages = []
- if somePages:
- # wrapped generator is exhausted but some pages still unloaded
- # preload remaining pages
- for loaded_page in self.preload(somePages):
- yield loaded_page
- except Exception, e:
- wikipedia.output(unicode(e))
+ except Exception, e:
+ wikipedia.output(unicode(e))
finally:
if hasattr(self.wrapped_gen, "stop"):
self.wrapped_gen.stop()