[Top][All Lists]

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

Re: [Gnumed-devel] further testing / bugs

From: Karsten Hilbert
Subject: Re: [Gnumed-devel] further testing / bugs
Date: Sun, 7 Aug 2005 21:02:03 +0200
User-agent: Mutt/1.5.9i

On Sun, Aug 07, 2005 at 02:03:56PM +0200, Hilmar Berger wrote:

> when switching between patients I get an error (e.g. in EMR-Browser, although 
> the plugins seem to refresh properly): 
> DISPATCHER ERROR: exceptions.AttributeError <cHealthIssueEditArea instance 
> has no attribute '_patient'>
> DISPATCHER ERROR: calling <<bound method 
> cHealthIssueEditArea._on_activating_patient of 
> <Gnumed.wxpython.gmEMRStructWidgets.cHealthIssueEditArea instance; proxy of 
> C++ wxPanel instance at _87cc060_wxPanel_p>>> failed

You will notice that this only happens if you added a health
issue to the old patient before switching. The reason for it
is that on destroying the health issue edit area the
registered interests thereof (namely, backend changes to the
health issue table) are not properly unregistered. I haven't
really found a proper way to do so and have lacked the time
to fully investigate the issue, too. __del__ isn't really
the answer as it isn't guarantueed to be called with the
rest of the object (say, unregister_interests()) still
functional. All in all the error is a non-issue, however, as
the dispatcher will notice the failing callback and remove
it from it's list of listeners. The reporting is just for
good measure so we don't simply plaster over warts in our

Does that help any ?  ;-)

... on second thought I fixed the bug, hehe :-)

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

reply via email to

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