Next blank.gif blank.gif

Class FormState - This is a Dictionary which holds the state of a form.


SYNOPSIS

import StickyForm
class FormState(UserDict)
  def __init__(self, field_storage=None)
  string __module__ = 'StickyForm'
  def restore(self,filename)
  def save(self,filename)

  # Methods inherited by FormState from UserDict
  def __cmp__(self, dict)
  def __delitem__(self, key)
  def __getitem__(self, key)
  def __len__(self)
  def __repr__(self)
  def __setitem__(self, key, item)
  def clear(self)
  def copy(self)
  def get(self, key, failobj=None)
  def has_key(self, key)
  def items(self)
  def keys(self)
  def update(self, other)
  def values(self)

DESCRIPTION

It is like a simplified FieldStorage class. Each key is the name of a form element. Each value is either a string or a list of strings which define that value.

You can create a FormState from a FieldStorage. You can save and restore FormStates from text files

SEE ALSO

StickyForm

UserDict


Next blank.gif blank.gif
Buzz.gif

Copyright © Amos Latteier
All Rights Reserved
Comments to author: amos@aracnet.com
Generated: Tue Apr 20, 1999