[Zope-dev] Re: '-C' in REQUEST.form ?
Tres Seaver
tseaver at palladion.com
Sun Dec 18 07:44:22 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Philipp von Weitershausen wrote:
> Florent Guillaume wrote:
>
>>I have a strange thing in Zope 2.8 and Zope 2.9 I never noticed.
>>{'-C': ''} is present in REQUEST.form for a GET request without arguments.
>>A simple script "showrequest" with "return repr (context.REQUEST.form)"
>>shows it.
>>
>>A bit of digging shows this is due to cgi.py which has the code (in
>>parse()):
>> if sys.argv[1:]:
>> qs = sys.argv[1]
>> else:
>> qs = ""
>>
>>And Zope is actually run with the command line:
>>/usr/local/bin/python /opt/zope28/lib/python/Zope2/Startup/run.py -C /
>>home/fg/zope28/etc/zope.conf
>>which explains the '-C'.
>>
>>What should we do? Clear sys.argv[1:] on Zope start?
>
>
> Do we still need CGI support anyway? AFAIK it got just ripped out...
Python's standard 'cgi' module is the thing which converts the request's
URL query or formdata into the 'form' object. It has nothing to do with
running Zope as a CGI.
Tres.
- --
===================================================================
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDpVmm+gerLs4ltQ4RAkeOAKDHgdSBWydYCC1TRmJRExVnBZigswCdHaoA
XRyvEVcnMa950ps0ef/s2xA=
=WEoU
-----END PGP SIGNATURE-----
More information about the Zope-Dev
mailing list