1.1 --- a/WebStack/Generic.py Sun Aug 29 22:46:29 2004 +0000
1.2 +++ b/WebStack/Generic.py Mon Aug 30 18:24:00 2004 +0000
1.3 @@ -20,8 +20,16 @@
1.4 "A container for content type information."
1.5
1.6 def __init__(self, content_type, charset=None, attributes=None):
1.7 +
1.8 + """
1.9 + Initialise the container with the given principal 'content_type', an
1.10 + optional 'charset' (which otherwise uses "utf-8" as default), and
1.11 + optional 'attributes' (a list of 2-tuples each representing the
1.12 + key=value pairs which qualify content types).
1.13 + """
1.14 +
1.15 self.content_type = content_type
1.16 - self.charset = charset
1.17 + self.charset = charset or "utf-8"
1.18 self.attributes = attributes
1.19
1.20 class Transaction: