Gre7g Luterman <[EMAIL PROTECTED]> 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 ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to