← Back to team overview

openlp-core team mailing list archive

[Bug 706207] Re: New Web Bible download call relies on ASCII addresses

 

Added a fix for the NGÜ bible.  At some point this may need properly
looking at but not immediately.  Not sure what the "New" in the bug
title refers too really as the actual code to download bibles hasn't
changed in ages.

** Changed in: openlp
   Importance: Undecided => Low

** Changed in: openlp
   Importance: Low => Wishlist

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

Title:
  New Web Bible download call relies on ASCII addresses

Status in OpenLP - Worship Presentation Software:
  Confirmed

Bug description:
  This happens by downloading texts from the 'Neue Genfer Übersetzung'
  from Bibleserver. The URL contains '/NGÜ/'.

  Traceback (most recent call last):
    File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py", line 558, in onQuickSearchButton
      self.search_results = self.parent.manager.get_verses(bible, text)
    File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py", line 271, in get_verses
      return self.db_cache[bible].get_verses(reflist)
    File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 446, in get_verses
      search_results = self.get_chapter(book, reference[1])
    File "/home/meinert/Qt/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/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 270, in get_bible_chapter
      soup = get_soup_for_bible_ref(chapter_url, header)
    File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 517, in get_soup_for_bible_ref
      page = get_web_page(reference_url, header, True)
    File "/home/meinert/Qt/OpenLP/trunk/openlp/core/utils/__init__.py", line 329, 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)





References