Use modern PTL syntax (quixote/doc/upload.txt)
Andrew Kuchling <akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Tue, 31 Dec 2002 14:52:30 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/cvs/quixote/doc
In directory hewson:/tmp/cvs-serv11126
Modified Files:
upload.txt
Log Message:
Use modern PTL syntax
Index: upload.txt
===================================================================
RCS file: /home/cvs/quixote/doc/upload.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- upload.txt 3 Oct 2002 14:34:11 -0000 1.1
+++ upload.txt 31 Dec 2002 19:52:28 -0000 1.2
@@ -24,7 +24,7 @@
you need to supply at least one ``file`` form element. Here's an
example::
- template upload_form (request):
+ def upload_form [plain] (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. ::
- template receive (request):
+ def receive [plain] (request):
print request
should print an HTTPUploadRequest object to the debug log, assuming that
@@ -117,7 +117,7 @@
with uploaded files are represented as Upload objects. Here's an
example that goes with the above upload form::
- template receive (request):
+ def receive [plain] (request):
name = request.form.get("name")
if name:
"<p>Thanks, %s!</p>\n" % html_quote(name)