Gre7g Luterman <[EMAIL PROTECTED]> writes:
> Suppose I wanted to add some configurable parameters to contrib/cgi;
> for example, a formatting string for how the user would like a
> message's date displayed.
>
> Would it be "kosher" for me to expect the user to add the setting to
> their ~/.tmdarc, ~/.tmda/config, or /etc/tmdarc file? Or would it
> be more politically correct to have my own cgi-config file?
I'll let you decide. If you think it makes sense to add to the
Defaults.py namespace, go ahead. I don't have any problem with this.
See Defaults.py for how configuration variables are defined. It might
be a good idea to define a single top level variable such as
`TMDA_CGI' with a default value of 0 which the user/site can set to 1
if he plans to use tmda-cgi. Later TMDA_CGI_FOO variables will first
check if TMDA_CGI is true before even trying to compute a default
value. This will save processing time for those who aren't using
tmda-cgi.
For example,
# Default is 0 (turned off)
if not vars().has_key('TMDA_CGI'):
TMDA_CGI = 0
# Setting for TMDA_CGI_FOO
if TMDA_CGI and not vars().has_key('TMDA_CGI_FOO'):
# compute default value for TMDA_CGI_FOO here
etc..
Also, see http://tmda.net/bugs.html for some hints on how to work from
CVS, submit diffs, etc.
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers