changeset 4244:521dbdec654e

Remove unneeded module (integrated in WSGI-app now)
author Florian Krupicka <florian.krupicka@googlemail.com>
date Thu, 24 Jul 2008 20:37:20 +0200
parents e116e90ffdec
children 2b21ec54a5c9
files MoinMoin/web/apps.py
diffstat 1 files changed, 0 insertions(+), 41 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/apps.py	Thu Jul 24 20:35:13 2008 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-# -*- coding: iso-8859-1 -*-
-"""
-    MoinMoin - WSGI apps and middlewares
-
-    @copyright: 2003-2008 MoinMoin:ThomasWaldmann,
-                2008-2008 MoinMoin:FlorianKrupicka
-    @license: GNU GPL, see COPYING for details.
-"""
-from werkzeug.exceptions import HTTPException
-
-from MoinMoin.web.request import Request
-from MoinMoin.web.contexts import XMLRPCContext
-
-class HTTPExceptionsMiddleware(object):
-    def __init__(self, app):
-        self.app = app
-
-    def __call__(self, environ, start_response):
-        try:
-            return self.app(environ, start_response)
-        except HTTPException, e:
-            return e(environ, start_response)
-
-class XMLRPCApp(object):
-    """ Handles XML-RPC method calls or dispatches to next layer """
-
-    def __init__(self, app):
-        self.app = app
-
-    def __call__(self, environ, start_response):
-        request = Request(environ)
-        action = request.args.get('action')
-
-        from MoinMoin import xmlrpc
-
-        if action == 'xmlrpc':
-            return xmlrpc.xmlrpc(XMLRPCContext(environ))
-        elif action == 'xmlrpc2':
-            return xmlrpc.xmlrpc2(XMLRPCContext(environ))
-        else:
-            return self.app(environ, start_response)