List from another list in DTML?
Hello All, A form contains data items ['firstname','secondname','dofb' etc] and some "service" fields ['submit','sid','form','nform']. With REQUEST.form.items() all these fields are included in a single list. How can another list be created from the list which contains only data fields? Is it possible with DTML only? -- Best regards, Alexander N. Chelnokov Ural Scientific Institute of Traumatology and Orthopaedics 7, Bankovsky str. Ekaterinburg 620014 Russia ICQ: 25640913
Alexander Chelnokov wrote:
Hello All,
A form contains data items ['firstname','secondname','dofb' etc] and some "service" fields ['submit','sid','form','nform']. With REQUEST.form.items() all these fields are included in a single list. How can another list be created from the list which contains only data fields? Is it possible with DTML only?
form is an instance of the python cgi FieldStorage the docs included with your python distro will give you more info. try (untested) REQUEST.form.values()
-- Best regards, Alexander N. Chelnokov Ural Scientific Institute of Traumatology and Orthopaedics 7, Bankovsky str. Ekaterinburg 620014 Russia ICQ: 25640913
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Alexander Chelnokov -
Kapil Thangavelu