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 code. Does that help any ? ;-) ... on second thought I fixed the bug, hehe :-) Karsten -- GPG key ID E4071346 @ wwwkeys.pgp.net E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346 _______________________________________________ Gnumed-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnumed-devel
