|
From: Michael F. <fuz...@vo...> - 2006-07-28 09:07:56
|
Mike Krell wrote:
> Thank you for the ConfigObj module -- I find it quite useful.
>
> Is there a way to specify that section / keyword names should be treated case
> insensitively, i.e., Database and database would fold onto the same entry in
> the dictionary? This would be more consistent with the way these names are
> handled under Windows.
>
Hello Mike,
I'm afraid case insensitivity isn't part of ConfigObj. A recursive
'post-processor' that iterates over all sections and keys making them
uppercase or lowercase could be done in a few lines of code though.
You should use the ``walk`` method to do this :
http://www.voidspace.org.uk/python/configobj.html#walking-a-section
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
> Mike
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
|