gnumed-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-bugs] (accidental) semicolon in patient search triggers unhandle


From: Jim Busser
Subject: [Gnumed-bugs] (accidental) semicolon in patient search triggers unhandled exception
Date: Mon, 31 Oct 2011 15:20:33 -0700

I had intended to type the characters after …


        … oheil

but inadvertently hit semi-cololn instead of lower-case "L"

        ohei;

which gives the following. I suppose a deliberate semi-colon would have the 
same result <grin>


2011-10-31 15:15:10  DEBUG     gm.person 
(/Users/djb/Downloads/gnumed-client.1.1.0/Gnumed/business/gmPersonSearch.py::_generate_queries_de()
 #359): [ohei;]: not a search term with a "suggestive" structure
2011-10-31 15:15:10  DEBUG     gm.person 
(/Users/djb/Downloads/gnumed-client.1.1.0/Gnumed/business/gmPersonSearch.py::_normalize_soundalikes()
 #151): [ohei;] -> [ohei;]
2011-10-31 15:15:10  DEBUG     gm.gui 
(/Users/djb/Downloads/gnumed-client.1.1.0/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
 #152): unhandled exception caught:
Traceback (most recent call last):
  File 
"/Users/djb/Downloads/gnumed-client.1.1.0/Gnumed/wxpython/gmPatSearchWidgets.py",
 line 822, in __on_enter
    self._on_enter(search_term = curr_search_term)
  File 
"/Users/djb/Downloads/gnumed-client.1.1.0/Gnumed/wxpython/gmPatSearchWidgets.py",
 line 1119, in _on_enter
    super(self.__class__, self)._on_enter(search_term=search_term)
  File 
"/Users/djb/Downloads/gnumed-client.1.1.0/Gnumed/wxpython/gmPatSearchWidgets.py",
 line 830, in _on_enter
    idents = self.__person_searcher.get_identities(search_term)
  File 
"/Users/djb/Downloads/gnumed-client.1.1.0/Gnumed/business/gmPersonSearch.py", 
line 69, in get_identities
    queries = self._generate_queries(search_term)
  File 
"/Users/djb/Downloads/gnumed-client.1.1.0/Gnumed/business/gmPersonSearch.py", 
line 536, in _generate_queries_de
    'args': [_('name: last, first'), '^' + ' '.join(map(gmTools.capitalize, 
name_parts[1])), '^' + ' '.join(map(gmTools.capitalize, name_parts[0]))]
  File "/Users/djb/Downloads/gnumed-client.1.1.0/Gnumed/pycommon/gmTools.py", 
line 579, in capitalize
    return capitalize(text=text, mode=CAPS_FIRST)               # until fixed
  File "/Users/djb/Downloads/gnumed-client.1.1.0/Gnumed/pycommon/gmTools.py", 
line 564, in capitalize
    return text[0].upper() + text[1:]
IndexError: string index out of range




reply via email to

[Prev in Thread] Current Thread [Next in Thread]