allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [allura] 01/03: [#8276] remove unused WsgiDispatchController children
Date Thu, 11 Apr 2019 18:54:06 GMT
This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/8276
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 763133c1586209aefa6e3b75a7ba98358d191cc8
Author: Dave Brondsema <dave@brondsema.net>
AuthorDate: Thu Apr 11 11:17:35 2019 -0400

    [#8276] remove unused WsgiDispatchController children
---
 Allura/allura/controllers/project.py  | 12 --------
 Allura/allura/controllers/template.py | 56 -----------------------------------
 2 files changed, 68 deletions(-)

diff --git a/Allura/allura/controllers/project.py b/Allura/allura/controllers/project.py
index 5c7e253..50461a3 100644
--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -303,18 +303,6 @@ class NeighborhoodProjectBrowseController(ProjectBrowseController):
                     limit=limit, page=page, count=count)
 
 
-class HostNeighborhoodController(WsgiDispatchController, NeighborhoodController):
-
-    '''Neighborhood controller with support for use as a root controller, for
-    instance, when using adobe.domain.net (if this is allowed).
-    '''
-
-    auth = AuthController()
-    error = ErrorController()
-    nf = NewForgeController()
-    search = SearchController()
-
-
 class ToolListController(object):
 
     """Renders a list of all tools of a given type in the current project."""
diff --git a/Allura/allura/controllers/template.py b/Allura/allura/controllers/template.py
deleted file mode 100644
index 89d4b11..0000000
--- a/Allura/allura/controllers/template.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# -*- coding: utf-8 -*-
-
-#       Licensed to the Apache Software Foundation (ASF) under one
-#       or more contributor license agreements.  See the NOTICE file
-#       distributed with this work for additional information
-#       regarding copyright ownership.  The ASF licenses this file
-#       to you under the Apache License, Version 2.0 (the
-#       "License"); you may not use this file except in compliance
-#       with the License.  You may obtain a copy of the License at
-#
-#         http://www.apache.org/licenses/LICENSE-2.0
-#
-#       Unless required by applicable law or agreed to in writing,
-#       software distributed under the License is distributed on an
-#       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#       KIND, either express or implied.  See the License for the
-#       specific language governing permissions and limitations
-#       under the License.
-
-"""Fallback controller."""
-
-from pylons.controllers.util import abort
-
-from allura.lib.base import WsgiDispatchController
-
-__all__ = ['TemplateController']
-
-
-class TemplateController(WsgiDispatchController):
-
-    """
-    The fallback controller for allura.
-    
-    By default, the final controller tried to fulfill the request
-    when no other routes match. It may be used to display a template
-    when all else fails, e.g.::
-    
-        def view(self, url):
-            return render('/%s' % url)
-    
-    Or if you're using Mako and want to explicitly send a 404 (Not
-    Found) response code when the requested template doesn't exist::
-    
-        import mako.exceptions
-        
-        def view(self, url):
-            try:
-                return render('/%s' % url)
-            except mako.exceptions.TopLevelLookupException:
-                abort(404)
-    
-    """
-
-    def view(self, url):
-        """Abort the request with a 404 HTTP status code."""
-        abort(404)


Mime
View raw message