Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
web_PYTHON = \
src/web/__init__.py \
+ src/web/accounts.py \
src/web/auth.py \
src/web/blog.py \
src/web/download.py \
src/web/handlers.py \
- src/web/handlers_accounts.py \
src/web/handlers_admin.py \
src/web/handlers_base.py \
src/web/handlers_boot.py \
from .handlers import *
+from . import accounts
from . import auth
from . import blog
from . import download
# accounts.ipfire.org
self.add_handlers(r"accounts(\.dev)?\.ipfire\.org", [
- (r"/avatar/(\w+)\.jpg", AccountsAvatarHandler),
+ (r"/avatar/(\w+)\.jpg", accounts.AvatarHandler),
])
# admin.ipfire.org
from . import handlers_base as base
-class AccountsAvatarHandler(base.BaseHandler):
+class AvatarHandler(base.BaseHandler):
def get(self, who):
# Get the desired size of the avatar file
size = self.get_argument("size", 0)
import tornado.web
#import unicodedata
-from .handlers_accounts import *
from .handlers_admin import *
from .handlers_base import *
from .handlers_boot import *