1.1 --- a/WebStack/Webware.py Wed Feb 25 22:29:56 2004 +0000
1.2 +++ b/WebStack/Webware.py Wed Feb 25 22:30:23 2004 +0000
1.3 @@ -112,13 +112,54 @@
1.4
1.5 return "/" + self.trans.request().pathInfo()
1.6
1.7 + def get_query_string(self):
1.8 +
1.9 + """
1.10 + A framework-specific method which gets the query string from the path in
1.11 + the request.
1.12 + """
1.13 +
1.14 + return self.trans.request().queryString()
1.15 +
1.16 # Higher level request-related methods.
1.17
1.18 + def get_fields_from_path(self):
1.19 +
1.20 + """
1.21 + A framework-specific method which extracts the form fields from the
1.22 + path specified in the transaction. The underlying framework may refuse
1.23 + to supply fields from the path if handling a POST transaction.
1.24 +
1.25 + The returned object should employ the cgi.FieldStorage interface.
1.26 +
1.27 + The result of this method is dependent on the WebUtils.FieldStorage
1.28 + module's FieldStorage class.
1.29 + """
1.30 +
1.31 + return self.trans.request().fields()
1.32 +
1.33 + def get_fields_from_body(self):
1.34 +
1.35 + """
1.36 + A framework-specific method which extracts the form fields from the
1.37 + message body in the transaction.
1.38 +
1.39 + The returned object should employ the cgi.FieldStorage interface.
1.40 +
1.41 + The result of this method is dependent on the WebUtils.FieldStorage
1.42 + module's FieldStorage class.
1.43 + """
1.44 +
1.45 + return self.trans.request().fields()
1.46 +
1.47 def get_fields(self):
1.48
1.49 """
1.50 A framework-specific method which extracts the form fields from the
1.51 - transaction.
1.52 + transaction. Typically, the origin of the form fields will be affected
1.53 + by the method specified in the transaction.
1.54 +
1.55 + The returned object should employ the cgi.FieldStorage interface.
1.56 """
1.57
1.58 return self.trans.request().fields()