view MoinMoin/web/request.py @ 4143:917970e17b73

Added response object
author Florian Krupicka <florian.krupicka@googlemail.com>
date Tue, 03 Jun 2008 11:54:35 +0200
parents 6bbc4beed793
children 00a4837da41a
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - New slimmed down WSGI Request.

    @copyright: 2008-2008 MoinMoin:FlorianKrupicka
    @license: GNU GPL, see COPYING for details.
"""

import re

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(WerkzeugRequest):
    charset = config.charset
    encoding_errors = 'replace'

class Response(WerkzeugResponse):
    charset = config.charset
    default_mimetype = 'text/html'