changeset 4143:917970e17b73

Added response object
author Florian Krupicka <florian.krupicka@googlemail.com>
date Tue, 03 Jun 2008 11:54:35 +0200
parents 26dbb6d47863
children 0a62a439d81b
files MoinMoin/web/request.py
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/request.py	Tue Jun 03 11:51:16 2008 +0200
+++ b/MoinMoin/web/request.py	Tue Jun 03 11:54:35 2008 +0200
@@ -8,14 +8,19 @@
 
 import re
 
-from werkzeug import wrappers as werkzeug
-from werkzeug.utils import cached_property
+from werkzeug.wrappers import Request as WerkzeugRequest
+from werkzeug.wrappers import Response as WerkzeugResponse
 
 from MoinMoin import config
 
 from MoinMoin import log
 logging = log.getLogger(__name__)
 
-class Request(werkzeug.Request):
+class Request(WerkzeugRequest):
     charset = config.charset
     encoding_errors = 'replace'
+
+class Response(WerkzeugResponse):
+    charset = config.charset
+    default_mimetype = 'text/html'
+