]> granicus.if.org Git - python/commitdiff
issue1172: Documentation of "done" attribute in cgi module.
authorSean Reifscheider <jafo@tummy.com>
Tue, 18 Sep 2007 23:38:15 +0000 (23:38 +0000)
committerSean Reifscheider <jafo@tummy.com>
Tue, 18 Sep 2007 23:38:15 +0000 (23:38 +0000)
Doc/lib/libcgi.tex

index 1dd7e03f39171342c283ee4240ddf9e2b50f594c..971a6ad30bcd741b3b0317d8897f9c927bb1c939 100644 (file)
@@ -162,6 +162,11 @@ if fileitem.file:
         linecount = linecount + 1
 \end{verbatim}
 
+If an error is encountered when obtaining the contents of an uploaded file
+(for example, when the user interrupts the form submission by clicking on
+a Back or Cancel button) the \member{done} attribute of the object for the
+field will be set to the value -1.
+
 The file upload draft standard entertains the possibility of uploading
 multiple files from one field (using a recursive
 \mimetype{multipart/*} encoding).  When this occurs, the item will be