Use [html] template type. (quixote/doc/upload.txt)

Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Tue, 31 Dec 2002 15:15:41 -0500
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Update of /home/cvs/quixote/doc
In directory hewson:/tmp/cvs-serv11282

Modified Files:
	upload.txt 
Log Message:
Use [html] template type.


Index: upload.txt
===================================================================
RCS file: /home/cvs/quixote/doc/upload.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- upload.txt	31 Dec 2002 19:52:28 -0000	1.2
+++ upload.txt	31 Dec 2002 20:15:39 -0000	1.3
@@ -24,7 +24,7 @@
 you need to supply at least one ``file`` form element.  Here's an
 example::
 
-    def upload_form [plain] (request):
+    def upload_form [html] (request):
         '''
         <form enctype="multipart/form-data"
               method="POST" 
@@ -69,7 +69,7 @@
 include an upload or not.)  This is the ``request`` object that will be
 passed to your form-handling function or template, eg. ::
 
-    def receive [plain] (request):
+    def receive [html] (request):
         print request
 
 should print an HTTPUploadRequest object to the debug log, assuming that
@@ -117,10 +117,10 @@
 with uploaded files are represented as Upload objects.  Here's an
 example that goes with the above upload form::
 
-    def receive [plain] (request):
+    def receive [html] (request):
         name = request.form.get("name")
         if name:
-            "<p>Thanks, %s!</p>\n" % html_quote(name)
+            "<p>Thanks, %s!</p>\n" % name
 
         upload = request.form.get("upload")
         size = os.stat(upload.tmp_filename)[stat.ST_SIZE]
@@ -130,8 +130,7 @@
             '''\
             <p>You just uploaded <code>%s</code> (%d bytes)<br>
             which is temporarily stored in <code>%s</code>.</p>
-            ''' % (html_quote(upload.base_filename), size,
-                   html_quote(upload.tmp_filename))
+            ''' % (upload.base_filename, size, upload.tmp_filename)
 
 Upload objects provide three attributes of interest: