Ed Leafe wrote: > On Dec 16, 2006, at 12:23 PM, Carl Karsten wrote: > >> + def InitSetting(self, setting, ID, default ): >> + if not setting.Value: >> + val = app.getUserSetting(ID) >> + if not val: >> + val = default >> + setting.Value = val > > I don't understand this. Why are you checking the user setting only > if the Value is False? What if the value is True, and the user has > saved False?
Because I am not sure how to deal with Booleans - I guess it needs to start out as None, and only call app.getUserSetting(ID) in that case. C _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
