Convert ASP Request to sequence (PythonWin)

Mark Hammond mhammond at skippinet.com.au
Tue Oct 19 11:50:47 EDT 1999


Im not in a position to test this, but one of either:

for r in Request:
  print r

or:

i=1
while 1:
  try:
    r = Request.Item(i)
  except pythoncom.com_error:
    break

should work...

Mark.
-----Original Message-----
From: python-list-admin at python.org
[mailto:python-list-admin at python.org]On Behalf Of Dirk Leas
Sent: Saturday, 16 October 1999 1:38
To: LS, Python
Subject: Convert ASP Request to sequence (PythonWin)


I've installed PythonWin and am trying to do some python scripting w/n
ASP. If you know the form field by name, something like "name =
str(Request("name"))" works great. How do you access Request fields if
you don't know their name -- say you wanted to write a generic dump
script that would dump all the field names and values? Seems like
there would be a way to coerce the COM Request into some type of
python sequence. Anybody know the "secret racoon handshake"?

Thanks
D






More information about the Python-list mailing list