On 2008-05-16, Venkatraman.S. <[EMAIL PROTECTED]> wrote:
> The problem being, if i change the config file, then the configobj has
> to reload this file again. I do not want to 'refresh' the config obj
> per transaction but only when the config params change.
If you have trustable time stamps at yo
On May 16, 7:45 am, "A.T.Hofkamp" <[EMAIL PROTECTED]> wrote:
Thanks
> By picking better names, the config gets much more readable.
>
> The big advantage here is that a config file is something readable and
> editable
> without appearing it to be Python.
> If this is too low level for your users,
On 2008-05-16, Venkatraman.S. <[EMAIL PROTECTED]> wrote:
> Or a better example would be:
Indeed, this is concrete enough to make some suggestions.
> I have the params in a config file and import this module:
> myconfig.py
> a=10
> b=30
> c=31
> d=40
The big problem imho with coding such stuff di
Or a better example would be:
I have the params in a config file and import this module:
myconfig.py
a=10
b=30
c=31
d=40
import myconfig
def checkCutoff(self,up,down):
.do some processing
if (a <= score <= b):
result="Bad"
elif (c <= score
Hi,
Am sure many would have stumbled on this situation while developing an
application in Python which is highly driven by configuration/
properties.
I have an application (obviously written in Python) wherein the
properties change frequently and the program needs to work according
to the new rul