A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib/python2.7/dist-packages/bonito2/CGIPublisher.py in run_unprotected(self=<__main__.BonitoCGI instance>, path=['saveconc_form'], selectorname='corpname', outf=<open file '<stdout>', mode 'w'>) |
258 result = {'error': _('You are not allowed to use this corpus.')}
|
259 self.output_headers()
|
=> 260 self.output_result (methodname, tmpl, result, outf)
|
261
|
262 def process_method (self, methodname, pos_args, named_args):
|
self = <__main__.BonitoCGI instance>, self.output_result = <bound method BonitoCGI.output_result of <__main__.BonitoCGI instance>>, methodname = 'saveconc', tmpl = 'saveconc_form.tmpl', result = {'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'pos', 'n': u'pos'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'type', 'n': u'type'}], 'Corplist': [{'id': 'parlato', 'name': 'parlato'}, {'id': 'scritto', 'name': 'scritto'}], 'Globals': [{'name': 'corpname', 'value': u'scritto'}, {'name': 'viewmode', 'value': u'sen'}, {'name': 'refs', 'value': u'=doc.id'}], 'Lposlist': [], 'Q': [{'q': u'aword,[word=="essere"]'}, {'q': u'f'}, {'q': u'f'}, {'q': u'n0 0<0 1 [] within <doc id="stampa39" />'}, {'q': u'sdoc.id/ 0>0'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.dominio', 'n': u'doc.dominio'}], 'WSposlist': [], 'Wposlist': [], '_version': u'open-2.59.1-open-2.91.13', 'can_wseval': '', ...}, outf = <open file '<stdout>', mode 'w'> |
/usr/lib/python2.7/dist-packages/bonito2/CGIPublisher.py in output_result(self=<__main__.BonitoCGI instance>, methodname='saveconc', template='saveconc_form.tmpl', result={'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'pos', 'n': u'pos'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'type', 'n': u'type'}], 'Corplist': [{'id': 'parlato', 'name': 'parlato'}, {'id': 'scritto', 'name': 'scritto'}], 'Globals': [{'name': 'corpname', 'value': u'scritto'}, {'name': 'viewmode', 'value': u'sen'}, {'name': 'refs', 'value': u'=doc.id'}], 'Lposlist': [], 'Q': [{'q': u'aword,[word=="essere"]'}, {'q': u'f'}, {'q': u'f'}, {'q': u'n0 0<0 1 [] within <doc id="stampa39" />'}, {'q': u'sdoc.id/ 0>0'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.dominio', 'n': u'doc.dominio'}], 'WSposlist': [], 'Wposlist': [], '_version': u'open-2.59.1-open-2.91.13', 'can_wseval': '', ...}, outf=<open file '<stdout>', mode 'w'>, return_template=False) |
380 self.set_localisation() # in case run_protected has not ran (CA)
|
381 self._add_globals (result)
|
=> 382 self.add_undefined (result, methodname)
|
383 result = self.rec_recode(result)
|
384 for attr in dir(self): # recoding self
|
self = <__main__.BonitoCGI instance>, self.add_undefined = <bound method BonitoCGI.add_undefined of <__main__.BonitoCGI instance>>, result = {'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'pos', 'n': u'pos'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'type', 'n': u'type'}], 'Corplist': [{'id': 'parlato', 'name': 'parlato'}, {'id': 'scritto', 'name': 'scritto'}], 'Globals': [{'name': 'corpname', 'value': u'scritto'}, {'name': 'viewmode', 'value': u'sen'}, {'name': 'refs', 'value': u'=doc.id'}], 'Lposlist': [], 'Q': [{'q': u'aword,[word=="essere"]'}, {'q': u'f'}, {'q': u'f'}, {'q': u'n0 0<0 1 [] within <doc id="stampa39" />'}, {'q': u'sdoc.id/ 0>0'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.dominio', 'n': u'doc.dominio'}], 'WSposlist': [], 'Wposlist': [], '_version': u'open-2.59.1-open-2.91.13', 'can_wseval': '', ...}, methodname = 'saveconc' |
/usr/lib/python2.7/dist-packages/bonito2/conccgi.py in add_undefined(self=<__main__.BonitoCGI instance>, result={'AttrList': [{'label': u'word', 'n': u'word'}, {'label': u'pos', 'n': u'pos'}, {'label': u'lemma', 'n': u'lemma'}, {'label': u'type', 'n': u'type'}], 'Corplist': [{'id': 'parlato', 'name': 'parlato'}, {'id': 'scritto', 'name': 'scritto'}], 'Globals': [{'name': 'corpname', 'value': u'scritto'}, {'name': 'viewmode', 'value': u'sen'}, {'name': 'refs', 'value': u'=doc.id'}], 'Lposlist': [], 'Q': [{'q': u'aword,[word=="essere"]'}, {'q': u'f'}, {'q': u'f'}, {'q': u'n0 0<0 1 [] within <doc id="stampa39" />'}, {'q': u'sdoc.id/ 0>0'}], 'StructAttrList': [{'label': u'doc.id', 'n': u'doc.id'}, {'label': u'doc.dominio', 'n': u'doc.dominio'}], 'WSposlist': [], 'Wposlist': [], '_version': u'open-2.59.1-open-2.91.13', 'can_wseval': '', ...}, methodname='saveconc') |
312 corpname=self.corpname,
|
313 cache_dir=self.cache_dir,
|
=> 314 subchash=getattr(self._corp(), "subchash", None))]
|
315
|
316 if 'TextTypeSel' in names:
|
subchash undefined, builtin getattr = <built-in function getattr>, self = <__main__.BonitoCGI instance>, self._corp = <bound method BonitoCGI._corp of <__main__.BonitoCGI instance>>, builtin None = None |