[prev in list] [next in list] [prev in thread] [next in thread]
List: tmda-workers
Subject: Re: CVS: tmda/TMDA Defaults.py,1.155,1.156
From: "Jason R. Mastaler" <jason () mastaler ! com>
Date: 2002-11-25 20:54:57
[Download RAW message or body]
Gre7g Luterman <gre7g@users.sourceforge.net> writes:
> +# CGI_ACTIVE
> +# All defaults beginning with "CGI_" configure the behavior of tmda-cgi.
> +# tmda-cgi is provided as a contrib package for web-based monitoring and
> +# configuration of TMDA accounts. To use tmda-cgi, you must define
> +# CGI_ACTIVE to enable default values for the CGI_* variables.
> +#
> +# Example:
> +# CGI_ACTIVE = 1
> +#
> +# No default
> +if vars().has_key('CGI_ACTIVE'):
> +
[...]
I changed this to give CGI_ACTIVE a default value of 0.
Otherwise, you'll get a NameError if the user hasn't defined
CGI_ACTIVE in their config and you try to check whether it's defined.
_________________________________________________
tmda-workers mailing list (tmda-workers@tmda.net)
http://tmda.net/lists/listinfo/tmda-workers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic