Bugs item #1842287, was opened at 2007-12-01 13:03
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1842287&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: Leonardo Gregianin (leogregianin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Captcha doesn't work
Initial Comment:
Traceback below:
>>> Huong dao <<<
Corresponding page is Escotismo
Password for user LeonardoG on wikipedia:pt:
Logging in to wikipedia:pt as LeonardoG
Opening CAPTCHA in your web browser...
Traceback (most recent call last):
File "C:\pywikipediabot\trunk\pywikipedia\featured.py", line 339, in <module>
featuredWithInterwiki(fromsite, wikipedia.getSite(), template_on_top)
File "C:\pywikipediabot\trunk\pywikipedia\featured.py", line 297, in featuredWithInterwiki
atrans.put(text, comment)
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 1134, in put
if not self.botMayEdit():
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 882, in botMayEdit
self.site().forceLogin(sysop=True)
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 3640, in forceLogin
if loginMan.login(retry = True):
File "C:\pywikipediabot\trunk\pywikipedia\login.py", line 222, in login
cookiedata = self.getCookie()
File "C:\pywikipediabot\trunk\pywikipedia\login.py", line 163, in getCookie
answer = wikipedia.ui.askForCaptcha(url)
File "C:\pywikipediabot\trunk\pywikipedia\userinterfaces\terminal_interface.py", line 281, in askForCaptcha
webbrowser.open(url)
File "C:\Python25\lib\webbrowser.py", line 55, in open
if browser.open(url, new, autoraise):
File "C:\Python25\lib\webbrowser.py", line 505, in open
os.startfile(url)
WindowsError: [Error 22] Aplicativo nÒo encontrado: u'http://pt.wikipedia.org/w/
index.php?title=Especial:Captcha/image&wpCaptchaId=1093122940'
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-01 13:11
Message:
Logged In: YES
user_id=1327030
Originator: NO
I guess the error is "Application not found". It seems to be an error in
python or its configuration in your computer. Anyway, now in r4624 the
exception (WindowsError) is caught and a fallback question is shown.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1842287&group_…
Revision: 4624
Author: rotem
Date: 2007-12-01 11:09:28 +0000 (Sat, 01 Dec 2007)
Log Message:
-----------
Bug 1842287 reports a WindowsError is possible when opening the captcha image in the browser (in Windows, hopefully). It may be an error in python configuration. Catching it and using the fallback question.
Modified Paths:
--------------
trunk/pywikipedia/userinterfaces/terminal_interface.py
Modified: trunk/pywikipedia/userinterfaces/terminal_interface.py
===================================================================
--- trunk/pywikipedia/userinterfaces/terminal_interface.py 2007-12-01 10:17:01 UTC (rev 4623)
+++ trunk/pywikipedia/userinterfaces/terminal_interface.py 2007-12-01 11:09:28 UTC (rev 4624)
@@ -282,4 +282,6 @@
return wikipedia.input(u'What is the solution of the CAPTCHA that is shown in your web browser?')
except ImportError, e:
return wikipedia.input(u'What is the solution of the CAPTCHA at %s ?' % url)
+ except WindowsError:
+ return wikipedia.input(u'What is the solution of the CAPTCHA at %s ?' % url)
Bugs item #1842287, was opened at 2007-12-01 08:03
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=1842287&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: Leonardo Gregianin (leogregianin)
Assigned to: Nobody/Anonymous (nobody)
Summary: Captcha doesn't work
Initial Comment:
Traceback below:
>>> Huong dao <<<
Corresponding page is Escotismo
Password for user LeonardoG on wikipedia:pt:
Logging in to wikipedia:pt as LeonardoG
Opening CAPTCHA in your web browser...
Traceback (most recent call last):
File "C:\pywikipediabot\trunk\pywikipedia\featured.py", line 339, in <module>
featuredWithInterwiki(fromsite, wikipedia.getSite(), template_on_top)
File "C:\pywikipediabot\trunk\pywikipedia\featured.py", line 297, in featuredWithInterwiki
atrans.put(text, comment)
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 1134, in put
if not self.botMayEdit():
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 882, in botMayEdit
self.site().forceLogin(sysop=True)
File "C:\pywikipediabot\trunk\pywikipedia\wikipedia.py", line 3640, in forceLogin
if loginMan.login(retry = True):
File "C:\pywikipediabot\trunk\pywikipedia\login.py", line 222, in login
cookiedata = self.getCookie()
File "C:\pywikipediabot\trunk\pywikipedia\login.py", line 163, in getCookie
answer = wikipedia.ui.askForCaptcha(url)
File "C:\pywikipediabot\trunk\pywikipedia\userinterfaces\terminal_interface.py", line 281, in askForCaptcha
webbrowser.open(url)
File "C:\Python25\lib\webbrowser.py", line 55, in open
if browser.open(url, new, autoraise):
File "C:\Python25\lib\webbrowser.py", line 505, in open
os.startfile(url)
WindowsError: [Error 22] Aplicativo nÒo encontrado: u'http://pt.wikipedia.org/w/
index.php?title=Especial:Captcha/image&wpCaptchaId=1093122940'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1842287&group_…
Bugs item #1841155, was opened at 2007-11-29 20:12
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1841155&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: Filnik (filnik)
Assigned to: Nobody/Anonymous (nobody)
Summary: Page's function, removeImage doesn't work.
Initial Comment:
I've used that function, here: http://it.wikipedia.org/w/index.php?title=Massagno&diff=prev&oldid=12586322 but seems to be a really big bug... some help? :-)
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-01 12:18
Message:
Logged In: YES
user_id=1327030
Originator: NO
Fixed first issue (which isn't actually related to this bug) in r4622, and
the second one (which is this bug) in r4623.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-01 11:48
Message:
Logged In: YES
user_id=1327030
Originator: NO
The function:
1. Doesn't handle some (or all?) localized namespaces properly.
2. Strips templates when it doesn't find the image. Obviously, this
mustn't happen.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1841155&group_…
Revision: 4622
Author: rotem
Date: 2007-12-01 10:03:41 +0000 (Sat, 01 Dec 2007)
Log Message:
-----------
Fix escaping order, so you do not escape and then put the backslashes in other brackets, in wikipedia.Page.replaceImage. This means namespaces with non-ASCII (?) chars work now.
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2007-12-01 04:44:02 UTC (rev 4621)
+++ trunk/pywikipedia/wikipedia.py 2007-12-01 10:03:41 UTC (rev 4622)
@@ -2134,9 +2134,8 @@
"""
Creates a pattern that matches the string case-insensitively.
"""
- s = re.escape(s)
return ur'(?:%s)' % u''.join([u'[%s%s]'
- % (c.upper(), c.lower())
+ % (re.escape(c.upper()), re.escape(c.lower()))
for c in s])
def capitalizationPattern(s):
@@ -2145,11 +2144,10 @@
the first letter case-insensitive if capitalization is switched
on on the site you're working on.
"""
- s = re.escape(s)
if self.site().nocapitalize:
- return s
+ return re.escape(s)
else:
- return ur'(?:[%s%s]%s)' % (s[0].upper(), s[0].lower(), s[1:])
+ return ur'(?:[%s%s]%s)' % (re.escape(s[0].upper()), re.escape(s[0].lower()), re.escape(s[1:]))
namespaces = set(('Image', 'Media') + site.namespace(6, all = True) + site.namespace(-2, all = True))
# note that the colon is already included here
Bugs item #1841155, was opened at 2007-11-29 20:12
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1841155&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: Filnik (filnik)
Assigned to: Nobody/Anonymous (nobody)
Summary: Page's function, removeImage doesn't work.
Initial Comment:
I've used that function, here: http://it.wikipedia.org/w/index.php?title=Massagno&diff=prev&oldid=12586322 but seems to be a really big bug... some help? :-)
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2007-12-01 11:48
Message:
Logged In: YES
user_id=1327030
Originator: NO
The function:
1. Doesn't handle some (or all?) localized namespaces properly.
2. Strips templates when it doesn't find the image. Obviously, this
mustn't happen.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1841155&group_…
Patches item #1842094, was opened at 2007-12-01 02:57
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1842094&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: None
Priority: 5
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: Update namespaces for Ido
Initial Comment:
Please apply attached file containing new namespaces names for language Ido. Thanks!
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2007-12-01 04:45
Message:
Logged In: YES
user_id=1037345
Originator: YES
Fixed in r4621
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1842094&group_…
Patches item #1842094, was opened at 2007-12-01 02:57
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=1842094&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: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: Update namespaces for Ido
Initial Comment:
Please apply attached file containing new namespaces names for language Ido. Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1842094&group_…