gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] vaccinations


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] vaccinations
Date: Mon, 26 Sep 2005 18:17:53 +0200
User-agent: Mutt/1.5.9i

On Sun, Sep 25, 2005 at 07:19:08PM +1000, Ian Haywood wrote:

>               short_err = self.__editarea.get_short_error()
>               long_err = self.__editarea.get_long_error()
>               if (short_err is None) and (long_err is None):
>                       long_err = _(
>                               'Unspecified error saving data in edit 
> area.\n\n'
>                               'Programmer forgot to specify proper error\n'
>                               'message in [%s].'
>                       ) % self.__editarea.__class__.__name__
>               if short_err is not None:
>                       gmGuiHelpers.gm_beep_statustext(short_err, gmLog.lErr)
>               if long_err is not None:
>                       gmGuiHelpers.gm_show_error(long_err, _('saving clinical 
> data'), gmLog.lErr)
> 
> For pity's sake Karsten, what exactly is wrong with using python exceptions!
The solution to the above intricacies (which can only have
crept from my brain :-) does not lie in *exceptions* but
rather in *simplification*. Given the new approach I
discussed in the previous mail the need for this simply
disappears...

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

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