From: Michael F. <fuz...@vo...> - 2007-12-15 22:59:31
|
Robin Munn wrote: > On Dec 15, 2007 8:17 AM, Michael Foord <fuz...@vo...> wrote: > >> Daniel Watkins wrote: >> >>> However, I'm running into problems when I want a string config option >>> to default to the empty string. If I use any of: >>> prefix = string(default='') >>> prefix = string(default="") >>> prefix = string(default=None) >>> and don't specify a value in the config file, then prefix is set to '', >>> "" >>> >> Does this *not* mean that prefix is set to an empty string? >> >> If it *does* mean that then what actually do you want to happen? >> > > I understood him to mean that the prefix gets set to one of: > > - a string consisting of two single quotes > - a string consisting of two double quotes > - a string containing the word "None" > > and what he actually wants is an empty string. > > If that is the case then I will have to test it and fix it. There is another problem with validate turning strings into lists that needs fixing. Unfortunately I am kind of tied up with writing a wretched book - so I will have to make time for it somewhere. On the other hand validate is pretty simple code so if anyone wants to send a patch (with tests)... :-) Michael http://www.manning.com/foord |