]> git.ipfire.org Git - ipfire.org.git/commitdiff
fireinfo: Drop redirectors for old URLs
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Oct 2018 11:44:45 +0000 (11:44 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 Oct 2018 11:44:45 +0000 (11:44 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/__init__.py
src/web/fireinfo.py

index 06224b89a58e1f43b4963495a0da4adf5568b2a2..2e0a672478cc8924f2d9afdac8c8676a0c7aaa53 100644 (file)
@@ -206,15 +206,6 @@ class Application(tornado.web.Application):
                        (r"/statistics/networking", fireinfo.StatsNetworkingHandler),
                        (r"/statistics/releases", fireinfo.StatsReleasesHandler),
                        (r"/statistics/virtualization", fireinfo.StatsVirtualHandler),
-
-                       # Compat handlers
-                       (r"/stats", tornado.web.RedirectHandler, { "url" : "/statistics" }),
-                       (r"/stats/cpus", tornado.web.RedirectHandler, { "url" : "/statistics/processors" }),
-                       (r"/stats/geo", tornado.web.RedirectHandler, { "url" : "/statistics/geo-locations" }),
-                       (r"/stats/network", tornado.web.RedirectHandler, { "url" : "/statistics/networking" }),
-                       (r"/stats/oses", tornado.web.RedirectHandler, { "url" : "/statistics/releases" }),
-                       (r"/stats/virtual", tornado.web.RedirectHandler, { "url" : "/statistics/virtualization" }),
-                       (r"/vendor/(pci|usb)/([0-9a-f]{4})", fireinfo.DeviceVendorCompatHandler),
                ])
 
                # i-use.ipfire.org
index 637ec00957bc8bcba6f1cc36d4f029a30a0e48f9..dcb1de2366e91b1161d36a3eee8d215336685de5 100644 (file)
@@ -285,16 +285,6 @@ class DeviceVendorHandler(BaseHandler):
                self.render("fireinfo/vendor.html", vendor_name=vendor_name, devices=devices)
 
 
-class DeviceVendorCompatHandler(BaseHandler):
-       def get(self, subsystem, vendor_id):
-               self.redirect("/device/%s/%s" % (subsystem, vendor_id))
-
-
-class DeviceModelCompatHandler(BaseHandler):
-       def get(self, subsystem, vendor_id, model_id):
-               self.redirect("/device/%s/%s/%s" % (subsystem, vendor_id, model_id))
-
-
 class DeviceTableModule(ui_modules.UIModule):
        def render(self, devices, show_group=True, embedded=False):
                return self.render_string("fireinfo/modules/table-devices.html",