bugGNU Health - Bugs: bug #40128, on appointment.speciality = null...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #40128: on appointment.speciality = null report appointment reciept send error 500

Submitter:  Andres Vargas <zodman>
Submitted:  Fri 27 Sep 2013 10:29:29 PM UTC
   
 
Category:  Programming / Tracebacks Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  2.2.0
Module:  health Component:  None

Sun 29 Sep 2013 02:50:30 PM UTC, comment #2: 

Thank you Zodman !

Fixed it in changeset 1027:d0f282199918

New odt report : http://hg.savannah.gnu.org/hgweb/health/file/d0f282199918/tryton/health/report/appointment_receipt.odt


Luis Falcon <meanmicio>
Group administrator
Fri 27 Sep 2013 10:30:38 PM UTC, comment #1: 

i put the traceback 2 times sorry :S

Andres Vargas <zodman>
Fri 27 Sep 2013 10:29:29 PM UTC, original submission:  



For fix on appointment_receipt.odt:

<if test="appointment.institution and appointment.institution">
Institution : <appointment.institution and appointment.institution.name>
</if>
<if test="appointment.speciality">
Specialty : <appointment.speciality.name>
</if>



Traceback >>>>>>


/home/zodman/apps/tryton2.8/trytond/trytond/protocols/jsonrpc.py(123)_marshaled_dispatch()
-> response['result'] = dispatch_method(method, params)
  /home/zodman/apps/tryton2.8/trytond/trytond/protocols/jsonrpc.py(156)_dispatch()
-> res = dispatch(*args)
  /home/zodman/apps/tryton2.8/trytond/trytond/protocols/dispatcher.py(158)dispatch()
-> result = rpc.result(meth(args, *kwargs))
  /home/zodman/apps/tryton2.8/trytond/trytond/report/report.py(131)execute()
-> type, data = cls.parse(action_report, records, data, {})
  /home/zodman/apps/tryton2.8/trytond/trytond/report/report.py(280)parse()
-> data = rel_report(**localcontext).render()
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/relatorio/templates/base.py(39)render()
-> return self.serializer(self.events)
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/relatorio/templates/opendocument.py(833)__call__()
-> for kind, data, pos in stream:
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/core.py(288)_ensure()
-> for event in stream:
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/filters/i18n.py(683)__call__()
-> for kind, data, pos in stream:
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/base.py(605)_include()
-> for event in stream:
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/markup.py(327)_match()
-> for event in stream:
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/base.py(565)_flatten()
-> result = _eval_expr(data, ctxt, vars)
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/base.py(277)_eval_expr()
-> retval = expr.evaluate(ctxt)
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/eval.py(178)evaluate()
-> return eval(self.code, globals, {'__data_': data})
  /tmp/trytond_R1AWAX.odt(1)<Expression u'appointment.speciality.name'>()
-> PK�y�B^�2
              'mimetypeapplication/vnd.oasis.opendocument.textPK�y�meta.xml��K��0���F��-�q^��@��@
                                                                                                    ����"�8jm�H�8����8�,��9��9g�ת
                                                                                                                                 ��X���A(��T���~
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/eval.py(324)lookup_attr()
-> val = cls.undefined(key, owner=obj)

> /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/eval.py(410)undefined()

-> raise UndefinedError(key, owner=owner)
(Pdb) /home/zodman/apps/tryton2.8/trytond/trytond/model/modelstorage.py:1382: DeprecationWarning: With-statements now directly support multiple context managers
  Transaction().set_context(self._context)):

  /home/zodman/apps/tryton2.8/trytond/trytond/protocols/jsonrpc.py(123)_marshaled_dispatch()
-> response['result'] = dispatch_method(method, params)
  /home/zodman/apps/tryton2.8/trytond/trytond/protocols/jsonrpc.py(156)_dispatch()
-> res = dispatch(*args)
  /home/zodman/apps/tryton2.8/trytond/trytond/protocols/dispatcher.py(158)dispatch()
-> result = rpc.result(meth(args, *kwargs))
  /home/zodman/apps/tryton2.8/trytond/trytond/report/report.py(131)execute()
-> type, data = cls.parse(action_report, records, data, {})
  /home/zodman/apps/tryton2.8/trytond/trytond/report/report.py(280)parse()
-> data = rel_report(**localcontext).render()
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/relatorio/templates/base.py(39)render()
-> return self.serializer(self.events)
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/relatorio/templates/opendocument.py(833)__call__()
-> for kind, data, pos in stream:
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/core.py(288)_ensure()
-> for event in stream:
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/filters/i18n.py(683)__call__()
-> for kind, data, pos in stream:
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/base.py(605)_include()
-> for event in stream:
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/markup.py(327)_match()
-> for event in stream:
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/base.py(565)_flatten()
-> result = _eval_expr(data, ctxt, vars)
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/base.py(277)_eval_expr()
-> retval = expr.evaluate(ctxt)
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/eval.py(178)evaluate()
-> return eval(self.code, globals, {'__data_': data})
  /tmp/trytond_R1AWAX.odt(1)<Expression u'appointment.speciality.name'>()
-> PK�y�B^�2
              'mimetypeapplication/vnd.oasis.opendocument.textPK�y�meta.xml��K��0���F��-�q^��@��@
                                                                                                    ����"�8jm�H�8����8�,��9��9g�ת
                                                                                                                                 ��X���A(��T���~
  /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/eval.py(324)lookup_attr()
-> val = cls.undefined(key, owner=obj)

> /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/eval.py(410)undefined()

-> raise UndefinedError(key, owner=owner)
(Pdb) run

> /home/zodman/.virtualenvs/tryton/local/lib/python2.7/site-packages/genshi/template/eval.py(410)undefined()

-> raise UndefinedError(key, owner=owner)

Andres Vargas <zodman>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Updated the item)
  • -email is unavailable- added by zodman (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-29 meanmicio StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2013-09-29 meanmicio StatusNone Confirmed
        Assigned toNone meanmicio
        ReleaseNone 2.2.0

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code