Periodically I don't seem to be able to get lists out of REQUEST when in a Python Product method. I'm running 2.4.1 with python 2.1. I'm sure this worked before. REQUEST['foo'] gives me the first entry in the list, not the list. I've verified that this does work under 2.3.1, and 2.3.2 Anyway in case it's just me, here's a set of tests to try. <form method="POST" action="someMethod"> <select name="foo:list" multiple> <option value="1" selected>1 <option value="2" selected>2 <option value="3" selected>3 </select> <input type="submit" value="Go"> </form> def someMethod(self, REQUEST): print REQUEST['foo'] print type(REQUEST['foo']) def someMethod(self, foo=[], REQUEST): print foo print type(foo) print REQUEST['foo'] print type(REQUEST['foo']) -- Totally Holistic Enterprises Internet| | Andrew Milton The Internet (Aust) Pty Ltd | | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|
participants (1)
-
Andrew Kenneth Milton