When I add a bible version with for example an ü in the name, I cannot
display any verse. Any book, chapter and verse fails (but the button
does not stays disabled). But, when I open the database with sqliteman I
saw that the "download name" does not contain the Ü but an U.
Consequently any book, chapter or verse could be displayed. When I
changed it to an Ü (as it should be) I get the a traceback.

Concluding, the bug still seems to be present, although an other bug
("download name does not get saved properly") prevents reproducing it.


Traceback (most recent call last):
  File 
"/home/andreas/Projekte/openlp/trunk/openlp/plugins/bibles/lib/mediaitem.py", 
line 479, in onAdvancedSearchButton
    self.search_results = self.parent.manager.get_verses(bible, versetext)
  File 
"/home/andreas/Projekte/openlp/trunk/openlp/plugins/bibles/lib/manager.py", 
line 271, in get_verses
    return self.db_cache[bible].get_verses(reflist)
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/bibles/lib/http.py", 
line 446, in get_verses
    search_results = self.get_chapter(book, reference[1])
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/bibles/lib/http.py", 
line 475, in get_chapter
    return handler.get_bible_chapter(self.download_name, book, chapter)
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/bibles/lib/http.py", 
line 271, in get_bible_chapter
    soup = get_soup_for_bible_ref(chapter_url, header)
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/bibles/lib/http.py", 
line 525, in get_soup_for_bible_ref
    page = get_web_page(reference_url, header, True)
  File "/home/andreas/Projekte/openlp/trunk/openlp/core/utils/__init__.py", 
line 325, in get_web_page
    page = urllib2.urlopen(req)
  File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.6/urllib2.py", line 391, in open
    response = self._open(req, data)
  File "/usr/lib/python2.6/urllib2.py", line 409, in _open
    '_open', req)
  File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 1170, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.6/urllib2.py", line 1142, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "/usr/lib/python2.6/httplib.py", line 914, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.6/httplib.py", line 951, in _send_request
    self.endheaders()
  File "/usr/lib/python2.6/httplib.py", line 908, in endheaders
    self._send_output()
  File "/usr/lib/python2.6/httplib.py", line 780, in _send_output
    self.send(msg)
  File "/usr/lib/python2.6/httplib.py", line 759, in send
    self.sock.sendall(str)
  File "<string>", line 1, in sendall
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdc' in position 
12: ordinal not in range(128)

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/706209

Title:
  Bibles: after a exception in a reference search the search button
  stays disabled

Status in OpenLP - Worship Presentation Software:
  Confirmed

Bug description:
  After a exception occurs while searching (e.g. Bug #706207) the seach
  button stays disabled for the rest of the session. So you have to
  restart OpenLP in order to use bibles again.



_______________________________________________
Mailing list: https://launchpad.net/~openlp-core
Post to     : openlp-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openlp-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to