[ZCM] [ZC] 2287/ 2 Comment "membership and iteration in form records"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Wed, 28 Feb 2007 09:13:18 -0500
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2287 Update (Comment) "membership and iteration in form records" Status Pending, Zope/feature medium To followup, visit: http://www.zope.org/Collectors/Zope/2287 ============================================================== = Comment - Entry #2 by ajung on Feb 28, 2007 9:13 am Patches are welcome ________________________________________ = Request - Entry #1 by bcroq on Feb 28, 2007 8:50 am When submitting a form with :record fields (eg: <input name="myrecord.thekey:record" value="value"/>) we get dict-like object for these fields. It would be great if we could use "if 'thekey' in form.myrecord:..." and "for key in myrecord:..." as it is possible to do with dict since Python 2.4. By now, we have to use "if 'thekey' in form.myrecord.keys():..." and "for key in myrecord.keys():..." as with Python < 2.4. ==============================================================