health-dev
[Top][All Lists]
Advanced

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

[Health-dev] [bug #43542] Patient medication history report crashes when


From: Fabián C.
Subject: [Health-dev] [bug #43542] Patient medication history report crashes when it is not filled the field "Indication"
Date: Wed, 05 Nov 2014 18:03:17 +0000
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.120 Chrome/37.0.2062.120 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?43542>

                 Summary: Patient medication history report crashes when it is
not filled the field "Indication"
                 Project: GNU Health
            Submitted by: fabyc
            Submitted on: Wed 05 Nov 2014 01:03:16 PM ECT
                Category: reporting
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
                  Module: health

    _______________________________________________________

Details:

- In patient form, tab "medication" add some medication. To the medicine don't
fill the field "Indication".

- When click in "Medication" report of the patient, it launchs this error:

Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 125, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 158, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 159, in dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/report/report.py", line 128, in execute
    type, data = cls.parse(action_report, records, data, {})
  File "/trytond/report/report.py", line 277, in parse
    data = rel_report(**localcontext).render()
  File "/local/lib/python2.7/site-packages/relatorio/templates/base.py", line
34, in render
    return self.serializer(self.events)
  File
"/local/lib/python2.7/site-packages/relatorio/templates/opendocument.py", line
855, in __call__
    for kind, data, pos in stream:
  File "/local/lib/python2.7/site-packages/genshi/core.py", line 289, in
_ensure
    for event in stream:
  File "/local/lib/python2.7/site-packages/genshi/filters/i18n.py", line 690,
in __call__
    for kind, data, pos in stream:
  File "/local/lib/python2.7/site-packages/genshi/template/base.py", line 618,
in _include
    for event in stream:
  File "/local/lib/python2.7/site-packages/genshi/template/markup.py", line
326, in _match
    for event in stream:
  File "/local/lib/python2.7/site-packages/genshi/template/base.py", line 558,
in _flatten
    for kind, data, pos in stream:
  File "/local/lib/python2.7/site-packages/genshi/template/directives.py",
line 169, in _generate
    attrs = _eval_expr(self.expr, ctxt, vars)
  File "/local/lib/python2.7/site-packages/genshi/template/base.py", line 289,
in _eval_expr
    retval = expr.evaluate(ctxt)
  File "/local/lib/python2.7/site-packages/genshi/template/eval.py", line 177,
in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "<string>", line 1, in <Expression
u"{'{urn:oasis:names:tc:opendocument:xmlns:office:1.0}value':
__relatorio_store_cache(66824960, medication.indication.name or ''),
'{urn:oasis:names:tc:opendocument:xmlns:office:1.0}value-type':
__relatorio_guess_type(__relatorio_get_cache(66824960))}">
  File "/local/lib/python2.7/site-packages/genshi/template/eval.py", line 325,
in lookup_attr
    val = cls.undefined(key, owner=obj)
  File "/local/lib/python2.7/site-packages/genshi/template/eval.py", line 413,
in undefined
    raise UndefinedError(key, owner=owner)
UndefinedError: None has no member named "name"


When it is filled the field "Indication", the report works very well.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43542>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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