[Pywikipedia-l] [ pywikipediabot-Bugs-2373831 ] pagegenerators.py - error in titleregex
SourceForge.net
noreply at sourceforge.net
Tue Jan 27 12:44:19 UTC 2009
Bugs item #2373831, was opened at 2008-12-01 23:22
Message generated for change (Comment added) made by raven24
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2373831&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: raven24 (raven24)
Assigned to: Nobody/Anonymous (nobody)
Summary: pagegenerators.py - error in titleregex
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r6122, Dec 01 2008, 16:15:20)
Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2]
in the file pagegenerators.py on line 953 and 956 the numbers have to be adapted to the "new" argument name and thus the length of the string (since it is looking for input behind the arg or requesting it from the user)
----------------------------------------------------------------------
>Comment By: raven24 (raven24)
Date: 2009-01-27 13:44
Message:
ok, if you insist ;-)
sorry it took so long, but when I "svn up"-ed it accidentally wrote over
my changes...
here you go
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-01-27 11:34
Message:
Sorry, I'm too lazy to put this into code...
----------------------------------------------------------------------
Comment By: raven24 (raven24)
Date: 2009-01-27 11:24
Message:
sorry, I am to lazy now to make a diff, here is the code:
change this (line 952)
elif arg.startswith('-titleregex'):
if len(arg) == 6:
regex = wikipedia.input(u'What page names are you looking
for?')
else:
regex = arg[7:]
gen = RegexFilterPageGenerator(site.allpages(), regex)
to this
elif arg.startswith('-titleregex'):
if len(arg) == 11:
regex = wikipedia.input(u'What page names are you looking
for?')
else:
regex = arg[12:]
gen = RegexFilterPageGenerator(wikipedia.getSite().allpages(),
regex)
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-01-27 10:12
Message:
Please provide a patch, or confirm this issue has been resolved in the
meantime.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2373831&group_id=93107
More information about the Pywikipedia-l
mailing list