Changeset 153
- Timestamp:
- 05/20/08 16:21:19
- Files:
-
- AuthKit/trunk/CHANGELOG.txt (modified) (1 diff)
- AuthKit/trunk/authkit/authenticate/form.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
AuthKit/trunk/CHANGELOG.txt
r152 r153 4 4 0.4.1 (**svn**) 5 5 6 * Applied patch from Pawel Niewiadomski to fix #53 6 7 * Changed the import of the openid.sreg module to openid.extensions.sreg 7 8 * Fixed the encoding of the form.py file AuthKit/trunk/authkit/authenticate/form.py
r152 r153 64 64 AuthFormHandler.__init__(self, app, **p) 65 65 self.status = status 66 if charset is None:67 self.charset = ''68 else:69 self.charset = '; charset='+charset66 self.content_type = 'text/html' 67 if charset is not None: 68 self.content_type = self.content_type + '; charset='+charset 69 self.charset = charset 70 70 self.method = method 71 71 … … 101 101 else: 102 102 content = self.template(method=self.method) % (action) 103 if self.charset is not None: 104 content = content.encode(self.charset) 103 105 104 106 # @@@ Tell Pylons error documents middleware not to intercept the … … 108 110 self.status, 109 111 [ 110 ('Content-Type', 'text/html'+self.charset),112 ('Content-Type', self.content_type), 111 113 ('Content-Length', str(len(content))) 112 114 ]
