SVN: r25361 - in trunk: quixote
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Thu, 14 Oct 2004 18:51:56 -0400
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: nascheme
Date: 2004-10-14 18:51:28 -0400 (Thu, 14 Oct 2004)
New Revision: 25361
Modified:
trunk/quixote/http_request.py
Log:
Rename HTTPRequest.get_form_var() to get_field(). That matches the
terminology used by RFCs.
Modified: trunk/quixote/http_request.py
===================================================================
--- trunk/quixote/http_request.py 2004-10-14 21:21:16 UTC (rev 25360)
+++ trunk/quixote/http_request.py 2004-10-14 22:51:28 UTC (rev 25361)
@@ -110,8 +110,8 @@
To access environment variables associated with the request, use
get_environ(): eg. request.get_environ('SERVER_PORT', 80).
- To access form variables, use get_form_var(), eg.
- request.get_form_var("name").
+ To access form variables, use get_field(), eg.
+ request.get_field("name").
To access cookies, use get_cookie().
@@ -252,8 +252,8 @@
def get_cookie(self, cookie_name, default=None):
return self.cookies.get(cookie_name, default)
- def get_form_var(self, var_name, default=None):
- return self.form.get(var_name, default)
+ def get_field(self, name, default=None):
+ return self.form.get(name, default)
def get_method(self):
"""Returns the HTTP method for this request