]> git.ipfire.org Git - ipfire.org.git/commitdiff
web: Rename i-use module
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Oct 2018 17:07:38 +0000 (18:07 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Oct 2018 17:07:38 +0000 (18:07 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/web/__init__.py
src/web/handlers.py
src/web/iuse.py [moved from src/web/handlers_iuse.py with 96% similarity]

index 3495d7f5d77c3b8da3c9c22c28d1da866d10be0e..37ee832b58c90016e32585447738b1c61ac82e00 100644 (file)
@@ -81,8 +81,8 @@ web_PYTHON = \
        src/web/download.py \
        src/web/handlers.py \
        src/web/handlers_fireinfo.py \
-       src/web/handlers_iuse.py \
        src/web/handlers_mirrors.py \
+       src/web/iuse.py \
        src/web/location.py \
        src/web/newsletter.py \
        src/web/nopaste.py \
index 6c5f025f0bfa97d4bf429bf15ef36213f72358af..ff9a231dbf165972149952ae4030110bacf35a16 100644 (file)
@@ -17,6 +17,7 @@ from . import auth
 from . import blog
 from . import boot
 from . import download
+from . import iuse
 from . import location
 from . import newsletter
 from . import nopaste
@@ -219,7 +220,7 @@ class Application(tornado.web.Application):
 
                # i-use.ipfire.org
                self.add_handlers(r"i-use(\.dev)?\.ipfire\.org", [
-                       (r"/profile/([a-f0-9]{40})/([0-9]+).png", IUseImage),
+                       (r"/profile/([a-f0-9]{40})/([0-9]+).png", iuse.Image),
                ])
 
                # boot.ipfire.org
index 33d63ca75faf3888e84f693e654aaa331599e007..b9dac89ca36f440f0ff7c0656199dd2c68c5901d 100644 (file)
@@ -7,7 +7,6 @@ import tornado.web
 from . import base
 
 from .handlers_fireinfo import *
-from .handlers_iuse import *
 from .handlers_mirrors import *
 
 class LangCompatHandler(base.BaseHandler):
similarity index 96%
rename from src/web/handlers_iuse.py
rename to src/web/iuse.py
index 41f968704713188bec9f0c0994bcf8d8b5e23740..71842d1d8547345c39fa030991dca6e65920d94b 100644 (file)
@@ -8,9 +8,7 @@ import tornado.web
 
 from . import base
 
-class IUseImage(base.BaseHandler):
-       expires = 3600 * 3
-
+class Image(base.BaseHandler):
        def write_error(self, status_code, **kwargs):
                """
                        Select a random image from the errors directory