gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] That killed it stone dead


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] That killed it stone dead
Date: Tue, 17 Aug 2004 18:32:30 +0200
User-agent: Mutt/1.3.22.1i

> I have had the same problem: there is no easy way of guarateeing a
> default value in the configuration database.
> 
> My suggestion would be to extend the "template" configuration files
> under client/etc/config-definitions/ to support this.  
I agree.

> > if len(patientcolumnslist)==0:
> if not patientcolumnslist or len(patientcolumnslist)==0:
or, to be more explicit:

if patientcolumnslist is None:
    print "missing"
if len(patientcolumnslist) == 0:
    print "missing"

IOW, Ian is saying that client code depending on configuration
values should *always* check whether the value is there. A
common problem in computer science to check for known possible
error conditions.

Fixed.

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]