URL: <https://savannah.gnu.org/bugs/?63871>
Summary: Imaging Result Report: genshitemplateevalUndefinedError: None has no member named "rec_name" Group: GNU Health Submitter: yangoon Submitted: Sun 05 Mar 2023 09:16:01 PM UTC Category: Functionality Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Release: None Discussion Lock: Any Module: health_imaging Component: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sun 05 Mar 2023 09:16:01 PM UTC By: Mathias Behrle <yangoon> Printing the Imaging Test Result for TEST005 on the demo server: Traceback (most recent call last): File "/home/gnuhealth/local/lib/python39/site-packages/genshi/template/evalpy", line 301, in lookup_attr val = getattr(obj, key) AttributeError: 'NoneType' object has no attribute 'rec_name' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/gnuhealth/local/lib/python39/site-packages/genshi/template/evalpy", line 307, in lookup_attr val = obj[key] TypeError: 'NoneType' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/trytond/wsgipy", line 117, in dispatch_request return endpoint(request, **requestview_args) File "/trytond/protocols/dispatcherpy", line 46, in rpc return methodsget(requestrpc_method, _dispatch)( File "/trytond/wsgipy", line 84, in auth_required return wrapped(*args, **kwargs) File "/trytond/protocols/wrapperspy", line 159, in wrapper return func(request, pool, *args, **kwargs) File "/trytond/protocols/dispatcherpy", line 180, in _dispatch result = rpcresult(meth(*c_args, **c_kwargs)) File "/trytond/report/reportpy", line 215, in execute oext, content = cls_execute( File "/trytond/report/reportpy", line 233, in _execute return clsconvert(action, clsrender(action, report_context)) File "/trytond/report/reportpy", line 329, in render data = templategenerate(**report_context)render() File "/home/gnuhealth/local/lib/python39/site-packages/relatorio/templates/basepy", line 16, in render return selfserializer( File "/home/gnuhealth/local/lib/python39/site-packages/relatorio/templates/opendocumentpy", line 1157, in __call__ output_encode( File "/home/gnuhealth/local/lib/python39/site-packages/genshi/outputpy", line 60, in encode for chunk in iterator: File "/home/gnuhealth/local/lib/python39/site-packages/genshi/outputpy", line 243, in __call__ for kind, data, pos in stream: File "/home/gnuhealth/local/lib/python39/site-packages/genshi/outputpy", line 674, in __call__ for kind, data, pos in stream: File "/home/gnuhealth/local/lib/python39/site-packages/genshi/outputpy", line 779, in __call__ for kind, data, pos in chain(stream, [(None, None, None)]): File "/home/gnuhealth/local/lib/python39/site-packages/genshi/outputpy", line 598, in __call__ for ev in stream: File "/home/gnuhealth/local/lib/python39/site-packages/relatorio/templates/opendocumentpy", line 1053, in __call__ for kind, data, pos in stream: File "/home/gnuhealth/local/lib/python39/site-packages/genshi/filters/i18npy", line 789, in __call__ for kind, data, pos in stream: File "/home/gnuhealth/local/lib/python39/site-packages/genshi/template/basepy", line 641, in _include for event in stream: File "/home/gnuhealth/local/lib/python39/site-packages/genshi/template/markuppy", line 326, in _match for event in stream: File "/home/gnuhealth/local/lib/python39/site-packages/genshi/template/basepy", line 601, in _flatten result = _eval_expr(data, ctxt, vars) File "/home/gnuhealth/local/lib/python39/site-packages/genshi/template/basepy", line 290, in _eval_expr retval = exprevaluate(ctxt) File "/home/gnuhealth/local/lib/python39/site-packages/genshi/template/evalpy", line 160, in evaluate return eval(selfcode, _globals, {'__data__': data}) File "<string>", line 930, in <Expression '__relatorio_escape_invalid_chars(interpretationrequestcontextrec_name)'> File "/home/gnuhealth/local/lib/python39/site-packages/genshi/template/evalpy", line 309, in lookup_attr val = clsundefined(key, owner=obj) File "/home/gnuhealth/local/lib/python39/site-packages/genshi/template/evalpy", line 397, in undefined raise UndefinedError(key, owner=owner) genshitemplateevalUndefinedError: None has no member named "rec_name" _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63871> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/