Gre7g Luterman <[EMAIL PROTECTED]> writes:

> How about I remove the first check (the 400/600 test) and change the
> second check to:
>
> try:
>     CRYPT_KEY =
>       binascii.unhexlify(open(CRYPT_KEY_FILE).read().strip())
> except IOError:
>     if not os.environ.has_key("SCRIPT_NAME"): raise
>
> That way we will raise an exception at any time we are not running
> the CGI.

What is the ``SCRIPT_NAME'' environment variable, and what is it set
by? Is this something specific to tmda-cgi, or is it used other places
as well? This seems like a hack to me.

How about being more explicit, and only inhibit an IOError if users
have told TMDA they are using "no-su" mode?

Something like CGI_MODE = "no-su" ?
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to