Table of Contents

Class: SvFormContentDict Zope-2.2.1-src/lib/python/ZPublisher/cgi.py

Strict single-value expecting form content as dictionary.

IF you only expect a single value for each field, then form[key] will return that single value. It will raise an IndexError if that expectation is not true. IF you expect a field to have possible multiple values, than you can use form.getlist(key) to get all of the values. values() and items() are a compromise: they return single strings where there is a single value, and lists of strings otherwise.

Base Classes   
FormContentDict
Methods   
__getitem__
getlist
items
values
  __getitem__ 
__getitem__ ( self,  key )

Exceptions   
IndexError
  getlist 
getlist ( self,  key )

  items 
items ( self )

  values 
values ( self )


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6