gnumed-bugs
[Top][All Lists]
Advanced

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

Re: [Gnumed-bugs] <bug>: After initiating "write letter' using a lat


From: Karsten Hilbert
Subject: Re: [Gnumed-bugs] <bug>: After initiating "write letter' using a lat
Date: Thu, 24 Nov 2011 23:53:13 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hello Jim,

thanks for your report.

> user comment  : After initiating "write letter' using a
> latex template containing two free-text prompts, and after
> pressing cancel after the first widget followed by pressing
> the Cancel button in the second appearance of the prompt
> widget.
> 
> client version: 1.1.4

I'm fairly sure your template is broken (and it's got
nothing to do with the free text placeholder):

> 2011-11-24 12:55:20  DEBUG     gm.gui 
> (/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/wxpython/gmExceptionHandlingWidgets.py::handle_uncaught_exception_wx()
>  #160): unhandled exception caught:
> Traceback (most recent call last):
>   File 
> "/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/wxpython/gmGuiMain.py", line 
> 1062, in __on_new_letter
>     gmFormWidgets.print_doc_from_template(parent = self, keep_a_copy = True)
>   File 
> "/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/wxpython/gmFormWidgets.py", 
> line 55, in print_doc_from_template
>     form.substitute_placeholders(data_source = ph)
>   File "/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/business/gmForms.py", 
> line 719, in substitute_placeholders
>     for line in template_file:
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py",
>  line 684, in next
>     return self.reader.next()
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py",
>  line 615, in next
>     line = self.readline()
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py",
>  line 530, in readline
>     data = self.read(readsize, firstline=True)
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py",
>  line 477, in read
>     newchars, decodedbytes = self.decode(data, self.errors)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 0: 
> invalid continuation byte

...

> 2011-11-24 12:55:20  DEBUG     gm.logging 
> (/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/pycommon/gmLog2.py::log_stack_trace()
>  #155): >>> execution frame [read] in 
> [/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py]
>  at line 483 <<<
> 2011-11-24 12:55:20  DEBUG     gm.logging 
> (/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/pycommon/gmLog2.py::log_stack_trace()
>  #170):                  exc = 'utf8' codec can't decode byte 0xd0 in 
> position 0: invalid continuation byte
> 2011-11-24 12:55:20  DEBUG     gm.logging 
> (/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/pycommon/gmLog2.py::log_stack_trace()
>  #170):         decodedbytes = 0
> 2011-11-24 12:55:20  DEBUG     gm.logging 
> (/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/pycommon/gmLog2.py::log_stack_trace()
>  #170):                chars = -1
> 2011-11-24 12:55:20  DEBUG     gm.logging 
> (/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/pycommon/gmLog2.py::log_stack_trace()
>  #170):                lines = []
> 2011-11-24 12:55:20  DEBUG     gm.logging 
> (/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/pycommon/gmLog2.py::log_stack_trace()
>  #170):                 self = <open file 
> u'/var/folders/Ab/AbZqNE-hEFWlswprJgyHyk+++TM/-Tmp-/gnumed/gm-B_wIZL/gm-L-Template-DiZq6g.tex',
>  mode 'rb' at 0x1057d69c0>
> 2011-11-24 12:55:20  DEBUG     gm.logging 
> (/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/pycommon/gmLog2.py::log_stack_trace()
>  #170):             newchars = 
> 2011-11-24 12:55:20  DEBUG     gm.logging 
> (/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/pycommon/gmLog2.py::log_stack_trace()
>  #170):                 size = 72
> 2011-11-24 12:55:20  DEBUG     gm.logging 
> (/Users/svc/Downloads/gnumed-client.1.1.4/Gnumed/pycommon/gmLog2.py::log_stack_trace()
>  #170):                 data = ??????MSP Billing \# : 
> $<current_provider_external_id::Billing#//BC.CA_MSP>$

That line.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

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