SVN: r20292 - in trunk/quixote: . demo
akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected] Mon, 20 Jan 2003 15:06:13 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: akuchlin
Date: 2003-01-20 15:06:12 -0500 (Mon, 20 Jan 2003)
New Revision: 20292
Modified:
trunk/quixote/CHANGES
trunk/quixote/demo/__init__.py
trunk/quixote/demo/pages.ptl
Log:
Add a page to the demo that dumps the contents of the HTTPRequest.
Modified: trunk/quixote/demo/__init__.py
==============================================================================
--- trunk/quixote/demo/__init__.py (original)
+++ trunk/quixote/demo/__init__.py 2003-01-20 15:06:13.000000000 -0500
@@ -1,8 +1,8 @@
-_q_exports = ["simple", "error", "widgets", "form_demo"]
+_q_exports = ["simple", "error", "widgets", "form_demo", "dumpreq"]
import sys
-from quixote.demo.pages import _q_index
+from quixote.demo.pages import _q_index, dumpreq
from quixote.demo.widgets import widgets
from quixote.demo.forms import form_demo
from quixote.demo.integer_ui import IntegerUI
Modified: trunk/quixote/demo/pages.ptl
==============================================================================
--- trunk/quixote/demo/pages.ptl (original)
+++ trunk/quixote/demo/pages.ptl 2003-01-20 15:06:13.000000000 -0500
@@ -38,6 +38,8 @@
A Python object published through <code>_q_getname()</code>.
<li><a href="12/factorial">12/factorial</a>:
A method on a published Python object.
+ <li><a href="dumpreq">dumpreq</a>:
+ Print out the contents of the HTTPRequest object.
<li><a href="widgets">widgets</a>:
Try out the Quixote widget classes.
<li><a href="form_demo">form demo</a>:
@@ -47,3 +49,17 @@
</body>
</html>
""" % vars()
+
+def dumpreq [html] (request):
+ """
+ <html>
+ <head><title>HTTPRequest Object</title></head>
+ <body>
+ <h1>HTTPRequest Object</h1>
+ """
+ htmltext(request.dump_html())
+ """
+ </body>
+ </html>
+ """
+
Modified: trunk/quixote/CHANGES
==============================================================================
--- trunk/quixote/CHANGES (original)
+++ trunk/quixote/CHANGES 2003-01-20 15:06:13.000000000 -0500
@@ -9,6 +9,8 @@
* Fix two bugs in _c_htmltext.c found by code review. (Neil Schemenauer)
+ * Add a page to the demo that dumps the contents of the HTTPRequest.
+
0.6b1 (9 Jan 2003):