Convert ASP Request to sequence (PythonWin)

Dirk Leas dirkl at home.com
Tue Oct 19 15:24:20 EDT 1999


Thanks for the response..

I tried the first approach  and got the following is the response: "This
object does not support enumeration". In the second approach, "r" comes back
as None. I tested both with IIS and PWS.

Where can I go to dig deeper into this?

Thx,
D

-----Original Message-----
From: Mark Hammond [mailto:mhammond at skippinet.com.au]
Sent: Tuesday, October 19, 1999 8:51 AM
To: 'LS, Python'
Subject: RE: Convert ASP Request to sequence (PythonWin)


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

for r in Request:
  print r

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