Some fewd for thought..
-------------------- Start of forwarded message --------------------
From: "Dave Kelly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: TMDA dev suggestion
Date: Tue, 11 Jun 2002 10:17:31 -0500
Jason, I apologize first for not sending this to the development
list...unfortunately, my time is not very constant, and I may go for weeks
without doing anything with TMDA, and don't really have the time to do as
much active participation with it as I'd like.
That said, I have a couple suggestions for the developers for TMDA, so you
may wish to forward this to the mailing list.
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')
The reason I suggest this is that then you could edit get_config_value so it
could pull not only values from the .tmdarc file, but from other sources as
well. Say, you could define in Defaults.py a value like "USE_LDAP = 1", and
then TMDA could be more easily modified to use LDAP to hold the values that
are in a traditional .tmdarc file. It could also then be used for MySQL or
PostGres, and the only code that should have to change significantly would
be the get_config_value function. The hope is that this would make it
easier for developers to add other storage mechanisms for default values
besides the .tmdarc file.
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. An accessor function could either call
os.path.expanduser for a traditional TMDA install, or it could talk to an
LDAP or SQL database for a more non-traditional approach. Perhaps that is
being a bit over simplistic in this case, but I think you can see my idea.
I think these two suggestions could make TMDA more expandable to other
methods of storing the config information.
Thanks for listening. Hope you found these suggestions helpful.
-D
-------------------- End of forwarded message --------------------
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers