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

Submitted by:  Andres Vargas <zodman>
Submitted on:  Fri 27 Sep 2013 10:29:29 PM UTC  
 
Category: Programming / TracebacksSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Luis Falcon <meanmicio>
Open/Closed: ClosedRelease: 2.2.0
Module: health

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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 29 Sep 2013 02:50:30 PM UTCmeanmicioStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sun 29 Sep 2013 02:12:35 PM UTCmeanmicioStatusNone=>Confirmed
      Assigned toNone=>meanmicio
      ReleaseNone=>2.2.0

    Back to the top


    Powered by Savane 3.1-cleanup1