Package WebStack :: Package Helpers :: Module Request :: Class FileContent
[show private | hide private]
[frames | no frames]

Class FileContent


A simple class representing uploaded file content. This is useful in holding
metadata as well as being an indicator of such content in environments such
as Jython where it is not trivial to differentiate between plain strings and
Unicode in a fashion also applicable to CPython.

Instances of this class contain the following attributes:

  * content - a plain string containing the contents of the uploaded file
  * headers - a dictionary containing the headers associated with the
              uploaded file

Method Summary
  __init__(self, content, headers)
Initialise the object with 'content' and optional 'headers' describing the content.
  __str__(self)

Method Details

__init__(self, content, headers=None)
(Constructor)

Initialise the object with 'content' and optional 'headers' describing
the content.

Generated by Epydoc 2.1 on Thu Mar 1 00:37:14 2007 http://epydoc.sf.net