1.1 --- a/WebStack/Generic.py Wed Feb 25 22:29:56 2004 +0000
1.2 +++ b/WebStack/Generic.py Wed Feb 25 22:30:23 2004 +0000
1.3 @@ -201,11 +201,48 @@
1.4
1.5 raise NotImplementedError, "get_path_info"
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 + raise NotImplementedError, "get_query_string"
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 +
1.28 + raise NotImplementedError, "get_fields_from_path"
1.29 +
1.30 + def get_fields_from_body(self):
1.31 +
1.32 + """
1.33 + A framework-specific method which extracts the form fields from the
1.34 + message body in the transaction.
1.35 +
1.36 + The returned object should employ the cgi.FieldStorage interface.
1.37 + """
1.38 +
1.39 + raise NotImplementedError, "get_fields_from_body"
1.40 +
1.41 def get_fields(self):
1.42
1.43 """
1.44 A framework-specific method which extracts the form fields from the
1.45 - transaction.
1.46 + transaction. Typically, the origin of the form fields will be affected
1.47 + by the method specified in the transaction.
1.48 +
1.49 + The returned object should employ the cgi.FieldStorage interface.
1.50 """
1.51
1.52 raise NotImplementedError, "get_fields"