1.1 --- a/WebStack/Generic.py Sat Jan 14 01:51:20 2006 +0000
1.2 +++ b/WebStack/Generic.py Sat Jan 14 01:52:43 2006 +0000
1.3 @@ -54,6 +54,17 @@
1.4
1.5 default_charset = "iso-8859-1"
1.6
1.7 + # The default path info is provided here, although the manipulated virtual
1.8 + # path info is an instance attribute set through instances of subclasses of
1.9 + # this class.
1.10 +
1.11 + path_info = None
1.12 +
1.13 + # The default user is provided here, although the manipulated user is an
1.14 + # instance attribute set through instances of subclasses of this class.
1.15 +
1.16 + user = None
1.17 +
1.18 def commit(self):
1.19
1.20 """
1.21 @@ -382,7 +393,8 @@
1.22 Returns a dictionary mapping field names to lists of values (even if a
1.23 single value is associated with any given field name). Each value is
1.24 either a Unicode object (representing a simple form field, for example)
1.25 - or a plain string (representing a file upload form field, for example).
1.26 + or a WebStack.Helpers.Request.FileContent object (representing a file
1.27 + upload form field).
1.28 """
1.29
1.30 raise NotImplementedError, "get_fields_from_body"
1.31 @@ -399,7 +411,8 @@
1.32 Returns a dictionary mapping field names to lists of values (even if a
1.33 single value is associated with any given field name). Each value is
1.34 either a Unicode object (representing a simple form field, for example)
1.35 - or a plain string (representing a file upload form field, for example).
1.36 + or a WebStack.Helpers.Request.FileContent object (representing a file
1.37 + upload form field).
1.38
1.39 Where a given field name is used in both the path and message body to
1.40 specify values, the values from both sources will be combined into a