[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: <bug>: <user did not comment on bug report>
From: |
Karsten Hilbert |
Subject: |
Re: <bug>: <user did not comment on bug report> |
Date: |
Fri, 6 Sep 2024 16:43:45 +0200 |
Hello parallels,
thanks for reporting this issue.
> client version: 1.8.9
> Exception:
>
> type: <class 'AttributeError'>
> value: 'NoneType' object has no attribute 'substitute_placeholders'
>
> Traceback:
>
> File "/usr/share/gnumed/Gnumed/wxpython/gmGuiMain.py", line 1043, in
> __on_new_letter
> gmFormWidgets.print_doc_from_template(parent = self)#, keep_a_copy = True)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/share/gnumed/Gnumed/wxpython/gmFormWidgets.py", line 52, in
> print_doc_from_template
> form = generate_form_from_template (
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/share/gnumed/Gnumed/wxpython/gmFormWidgets.py", line 170, in
> generate_form_from_template
> form.substitute_placeholders(data_source = ph)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It stems from a form template not containing an actual
template for use, which means there is data missing in the
database.
I have added a check for that to the GNUmed client to be
release with the next version.
Meanwhile you can import a LaTeX template file into the
relevant form template record.
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B