You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by jg...@apache.org on 2005/10/28 23:21:07 UTC

svn commit: r329306 - /httpd/mod_python/trunk/Doc/modpython4.tex

Author: jgallacher
Date: Fri Oct 28 14:21:04 2005
New Revision: 329306

URL: http://svn.apache.org/viewcvs?rev=329306&view=rev
Log:
Changed description for file attribute of the Field class in util.py.
It now indicates that Field.file is a file-like object and may be either
an instance of TemporaryFile or StringIO.

Modified:
    httpd/mod_python/trunk/Doc/modpython4.tex

Modified: httpd/mod_python/trunk/Doc/modpython4.tex
URL: http://svn.apache.org/viewcvs/httpd/mod_python/trunk/Doc/modpython4.tex?rev=329306&r1=329305&r2=329306&view=diff
==============================================================================
--- httpd/mod_python/trunk/Doc/modpython4.tex (original)
+++ httpd/mod_python/trunk/Doc/modpython4.tex Fri Oct 28 14:21:04 2005
@@ -1462,7 +1462,7 @@
     provides the additional \member{value} attribute for compatibility
     with standard library \module{cgi} module.
   \item
-    An instances of a \class{Field} class, if the input is a file upload.
+    An instance of a \class{Field} class, if the input is a file upload.
   \item
     A list of \class{StringField} and/or \class{Field} objects. This is
     when multiple values exist, such as for a \code{<select>} HTML form
@@ -1526,7 +1526,11 @@
   \end{memberdesc}
 
   \begin{memberdesc}{file}
-    This is a file object. For file uploads it points to a temporary file.
+    This is a file-like object. For file uploads it points to a 
+    \class{TemporaryFile} instance. (For more information see the TemporaryFile
+    class in the standard python
+    \citetitle[http://docs.python.org/lib/module-tempfile.html]{tempfile} module).
+
     For simple values, it is a \class{StringIO} object, so you can read
     simple string values via this attribute instead of using the \member{value}
     attribute as well.