Traceback when search of non existing bible book
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenLP | Status tracked in Trunk | |||||
2.0 |
Won't Fix
|
Undecided
|
Unassigned | |||
Trunk |
Fix Released
|
Low
|
Tim Bentley |
Bug Description
Hello,
Using lp:openlp/2.0 revno 2190. This report is from the support system, but I verified it.
http://
1) Import a bible (for example Afrikaans Byble)
2) Search "Römer 1" using the quick search.
NOTE: The only case this does not happen is when the "Default Bible Language" is set to "Application Language" and the application language matches with the input string (here "Römer" is the German book name for "Romans".
IDEA for trunk: We might want to reconsider our default settings. When I use German as application language I might want to use German book names as well as the book names the bible is written in. E. g. when I have an English Bible study I want to be able to search for "Römer 1" as well as for "Romans 1". Maybe we should rather guess? I mean I never found a bible book name in language A which matches to another book name in another language which were not the same book in the bible. (In other words, in case the book names match, then the name will mean the same book.)
EXPECTED:
No Crash.
--- Exception Traceback ---
Traceback (most recent call last):
File "/home/
self.
File "/home/
return self.db_
File "/home/
db_book = self.get_
File "/home/
return self.get_
File "/usr/lib/
return self.operate(
File "/usr/lib/
return op(self.comparator, *other, **kwargs)
File "/usr/lib/
return a.like(b, escape=escape)
File "/usr/lib/
return self.operate(
File "/usr/lib/
return op(self.
File "/usr/lib/
return a.like(b, escape=escape)
File "/usr/lib/
return self.operate(
File "/usr/lib/
return op(self.comparator, *other, **kwargs)
File "/usr/lib/
return a.like(b, escape=escape)
File "/usr/lib/
return self.operate(
File "/usr/lib/
return o[0](self, self.expr, op, *(other + o[1:]), **kwargs)
File "/usr/lib/
"Only '=', '!=', 'is_()', 'isnot()' operators can "
ArgumentError: Only '=', '!=', 'is_()', 'isnot()' operators can be used with None/True/False
--- System information ---
Plattform: Linux-3.
--- Library Versions ---
Python: 2.7.6
Qt4: 4.8.5
Phonon: 4.7.1
PyQt4: 4.10.3
QtWebkit: 537.21
SQLAlchemy: 0.9.3
SQLAlchemy Migrate: 0.7.2
BeautifulSoup: 3.2.1
lxml: 3.3.1
Chardet: 2.2.1
PyEnchant: 1.6.5
PySQLite: 1.0.1
Mako: 0.9.1
pyUNO bridge: -
Related branches
- Raoul Snyman: Approve
-
Diff: 178 lines (+88/-6)6 files modifiedopenlp/core/lib/renderer.py (+8/-1)
openlp/core/ui/firsttimeform.py (+11/-0)
openlp/plugins/bibles/lib/__init__.py (+4/-1)
openlp/plugins/songusage/forms/songusagedetailform.py (+1/-1)
tests/functional/openlp_core_lib/test_renderer.py (+54/-3)
tests/interfaces/openlp_plugins/bibles/test_lib_parse_reference.py (+10/-0)
tags: | added: support-system |