CGI: remove variable from Tuple Object query

Gnarlodious gnarlodious at gmail.com
Sun Jun 5 23:55:58 EDT 2011


Say I send a request like this:
http://0.0.0.0/Sectrum/Gnomon?see=Gnomon&order=7&epoch=1303541219

This makes for a CGIform of the CGI Tuple Object type:
FieldStorage(None, None, [MiniFieldStorage('see', 'Gnomon'),
MiniFieldStorage('order', '7'), MiniFieldStorage('epoch',
'1303541219.58')])

So the above query should end up as:
FieldStorage(None, None, [MiniFieldStorage('order', '7'),
MiniFieldStorage('epoch', '1303541219.58')])

Is there an easy way to remove the first variable from the object? Or
am I stuck with using urllib.parse.urlparse(query)?

-- Gnarlie



More information about the Python-list mailing list