--> --> -->
 
 
<class 'conccgi.ConcError'>
Python 2.7.6: /usr/bin/python
Tue Oct 17 11:43:02 2017

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/bonito/run.cgi in ()
     78         print "</pre>"
     79     else:
=>   80         BonitoCGI(user=username).run_unprotected (selectorname='corpname')
     81 
     82 
BonitoCGI = <class __main__.BonitoCGI>, user undefined, username = None, ).run_unprotected undefined, selectorname undefined
 /usr/lib/python2.7/dist-packages/bonito/CGIPublisher.py in run_unprotected(self=<__main__.BonitoCGI instance>, path=['view'], selectorname='corpname', outf=<open file '<stdout>', mode 'w'>)
    265         if self._has_access:
    266             methodname, tmpl, result = self.process_method (path[0], path,
=>  267                                                                     named_args)
    268         else: # redirect to login or raise error
    269             methodname = path[0]
named_args = {'attr_allpos': u'kw', 'attr_tooltip': u'attr_tooltip', 'attrs': u'word', 'corpname': u'aclrdtec2bq', 'ctxattrs': u'word', 'fromp': u'1', 'q': u'aword,<term /> within <doc id="M92-1025" />', 'refs': u'=term.class,=term.id,=term.annotatorid', 'structs': u'term', 'viewmode': u'kwic'}
 /usr/lib/python2.7/dist-packages/bonito/CGIPublisher.py in process_method(self=<__main__.BonitoCGI instance>, methodname='view', pos_args=['view'], named_args={'attr_allpos': u'kw', 'attr_tooltip': u'attr_tooltip', 'attrs': u'word', 'corpname': u'aclrdtec2bq', 'ctxattrs': u'word', 'fromp': u'1', 'q': u'aword,<term /> within <doc id="M92-1025" />', 'refs': u'=term.class,=term.id,=term.annotatorid', 'structs': u'term', 'viewmode': u'kwic'})
    296             return (methodname,
    297                     getattr (method, 'template', methodname + '.tmpl'),
=>  298                     self.call_method (method, pos_args, named_args))
    299         except Exception, e:
    300             if self.format == 'json':
self = <__main__.BonitoCGI instance>, self.call_method = <bound method BonitoCGI.call_method of <__main__.BonitoCGI instance>>, method = <bound method BonitoCGI.view of <__main__.BonitoCGI instance>>, pos_args = ['view'], named_args = {'attr_allpos': u'kw', 'attr_tooltip': u'attr_tooltip', 'attrs': u'word', 'corpname': u'aclrdtec2bq', 'ctxattrs': u'word', 'fromp': u'1', 'q': u'aword,<term /> within <doc id="M92-1025" />', 'refs': u'=term.class,=term.id,=term.annotatorid', 'structs': u'term', 'viewmode': u'kwic'}
 /usr/lib/python2.7/dist-packages/bonito/CGIPublisher.py in call_method(self=<__main__.BonitoCGI instance>, method=<bound method BonitoCGI.view of <__main__.BonitoCGI instance>>, args=['view'], named_args={'attr_allpos': u'kw', 'attr_tooltip': u'attr_tooltip', 'attrs': u'word', 'corpname': u'aclrdtec2bq', 'ctxattrs': u'word', 'fromp': u'1', 'q': u'aword,<term /> within <doc id="M92-1025" />', 'refs': u'=term.class,=term.id,=term.annotatorid', 'structs': u'term', 'viewmode': u'kwic'})
    169         #print >> sys.stderr, 'CGIPublisher: call_method %s %s %s' % \
    170         #      (method, args[1:], na)
=>  171         return apply (method, args[1:], na)
    172         
    173     def call_function (self, func, args, **named_args):
builtin apply = <built-in function apply>, method = <bound method BonitoCGI.view of <__main__.BonitoCGI instance>>, args = ['view'], na = {}
 /usr/lib/python2.7/dist-packages/bonito/conccgi.py in view(self=<__main__.BonitoCGI instance>)
    486                 self.error = 'Nothing found'
    487             else:
=>  488                 raise ConcError (_('Empty result'))
    489         conc.switch_aligned (os.path.basename(self.corpname))
    490         labelmap = {}
global ConcError = <class 'conccgi.ConcError'>, builtin _ = <bound method NullTranslations.ugettext of <gettext.NullTranslations instance>>

<class 'conccgi.ConcError'>:
      args = ()
      message = u'Empty result'