changeset 10 | 6add80d3993b |
parent 9 | efb80785ca9b |
child 11 | 0f070e9daa71 |
--- a/index.cgi Tue May 05 18:08:48 2009 +0300 +++ b/index.cgi Tue May 05 18:10:25 2009 +0300 @@ -254,7 +254,11 @@ else : return self.default else : - return args.get(self.name, self.default, self.type) + if self.type == arg_bool and not self.default and self.name in args : + return True + + else : + return args.get(self.name, self.default, self.type) class Options (object) : def __init__ (self, *options) :