[Webware-devel] Re: class-based config syntax

2001-12-10 Thread Tavis Rudd
Here's a shitty alternative that highlights the best points of your class-based suggestion: ## def S(**kw): return kw AppServer = S( Applictions = S( MyApp = S( Dirs = S(Products = '/home/tavis/Webware/Products' Services = '/home/tavis/Webware/Ser

Re: [Webware-devel] Re: class-based config syntax

2001-12-10 Thread Tavis Rudd
On Monday 10 December 2001 13:42, Geoffrey Talvola wrote: > In your own example above, importing the config file actually > _creates_ two instance of application classes. This could have > side effects that you don't expect to get just by loading a config > file. It might cause lines to be writt

[Webware-devel] Re: class-based config syntax

2001-12-10 Thread Tavis Rudd
On Monday 10 December 2001 13:42, Geoffrey Talvola wrote: > Why not just put the "magic" part into a separate source file? I > don't see how putting this kind of stuff directly into the config > file gains any real power. The end result would be the same either way, but I prefer doing it direct

[Webware-devel] Re: class-based config syntax

2001-12-10 Thread Geoffrey Talvola
At 02:39 PM 12/10/01 -0800, Tavis Rudd wrote: >On Monday 10 December 2001 13:11, Geoffrey Talvola wrote: > > At 01:59 PM 12/10/01 -0800, Tavis Rudd wrote: > > >Geoff, > > >going back to your class-based config syntax... > > > > > >The reason we'd need to subclass SettingsContainer is that it is >

[Webware-devel] Re: class-based config syntax

2001-12-10 Thread Tavis Rudd
On Monday 10 December 2001 13:11, Geoffrey Talvola wrote: > At 01:59 PM 12/10/01 -0800, Tavis Rudd wrote: > >Geoff, > >going back to your class-based config syntax... > > > >The reason we'd need to subclass SettingsContainer is that it is > >possible to have settings that are in fact classes and d

[Webware-devel] Re: class-based config syntax

2001-12-10 Thread Geoffrey Talvola
At 01:59 PM 12/10/01 -0800, Tavis Rudd wrote: >Geoff, >going back to your class-based config syntax... > >The reason we'd need to subclass SettingsContainer is that it is >possible to have settings that are in fact classes and don't begin >with an underscore: > >## >from SettingsManager import Set