gnumed-bugs
[Top][All Lists]
Advanced

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

Re: <bug>: GNUmed does not start: error loading instance.


From: Karsten Hilbert
Subject: Re: <bug>: GNUmed does not start: error loading instance.
Date: Mon, 28 Oct 2019 21:21:34 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

Hello Jelle Mous,

> > client version: 1.7.7
...
> >   File "/usr/share/gnumed/Gnumed/wxpython/gmTopPanel.py", line 85, in 
> > __init_ui
> >     self.__lab_panel = gmPathLab.cTestPanel(aPK_obj = pk_panel)
> >   File "/usr/share/gnumed/Gnumed/pycommon/gmBusinessDBObject.py", line 321, 
> > in __init__
> >     self.__init_from_pk(aPK_obj = aPK_obj, link_obj = link_obj)
> >   File "/usr/share/gnumed/Gnumed/pycommon/gmBusinessDBObject.py", line 349, 
> > in __init_from_pk
> >     raise gmExceptions.ConstructorError, "[%s:%s]: error loading instance" 
> > % (self.__class__.__name__, self.pk_obj)
> > ConstructorError: [cTestPanel:1]: error loading instance
>
> happens because GNUmed fails to appreciate the fact that a
> test panel (battery of tests) once configured to be shown in
> the top panel of the GNUmed client may get deleted from the
> database later on. When this happens GNUmed throws up its
> hands in despair rather than gracefully work around the
> situation.

I have developed a fix for this issue and pushed it into the
public Git repository.

It will also be part of the next 1.7 point release (which
will be 1.7.8) and will be included in the upcoming 1.8.0rc1
which makes the jump to python3/wxPython4.

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B



reply via email to

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