"Jason R. Mastaler" <[EMAIL PROTECTED]> writes:
> My first suggestion is the consideration of making an accessor function for
> the values that are being pulled out of the .tmdarc file. Just a quick
> example thought off the top of my head would be something like:
>
> get_config_value('LOGFILE_DEFAULT')
This is really more of a set of classes - a Config class with
PostGreSQL, MySQL, LDAP etc. descendants. get_config_value would be a
method of those classes and overridden to do the appropriate thing.
I thought about this some while consider the SQL support, which, btw,
is significantly more complex that it appears at first sight.
> My second suggestion is the consideration of the same kind of accessor
> function for the expansion of user home directories, mostly for the same
> reasons stated above.
Another good idea, also a method in the above classes.
These classes can be built one at a time. We could start with a
Config class that models the current situation (essentially the
Defaults dictionary) and add various database support as we have time
and/or contributions.
Tim
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers