From b6d1dd6dd669e86a70aa9ba04eeb8a8951b1bfec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Sun, 3 Mar 2013 10:41:57 +0100 Subject: [PATCH] remove under-used constants.py --- mygpo/constants.py | 25 ------------------------- mygpo/web/templatetags/podcasts.py | 7 +++++-- mygpo/web/views/users.py | 4 +++- 3 files changed, 8 insertions(+), 28 deletions(-) delete mode 100644 mygpo/constants.py diff --git a/mygpo/constants.py b/mygpo/constants.py deleted file mode 100644 index 9c80e029..00000000 --- a/mygpo/constants.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# -# This file is part of my.gpodder.org. -# -# my.gpodder.org is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or (at your -# option) any later version. -# -# my.gpodder.org is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public -# License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with my.gpodder.org. If not, see . -# - - -PODCAST_LOGO_SIZE = 32 -PODCAST_LOGO_MEDIUM_SIZE=64 -PODCAST_LOGO_BIG_SIZE = 128 - -DEFAULT_LOGIN_REDIRECT = '/' - diff --git a/mygpo/web/templatetags/podcasts.py b/mygpo/web/templatetags/podcasts.py index 54001808..853234c1 100644 --- a/mygpo/web/templatetags/podcasts.py +++ b/mygpo/web/templatetags/podcasts.py @@ -5,12 +5,15 @@ from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ from django.utils.html import strip_tags -from mygpo.constants import PODCAST_LOGO_SIZE, PODCAST_LOGO_BIG_SIZE, \ - PODCAST_LOGO_MEDIUM_SIZE from mygpo.web.utils import get_podcast_link_target, \ get_podcast_group_link_target +PODCAST_LOGO_SIZE = 32 +PODCAST_LOGO_MEDIUM_SIZE=64 +PODCAST_LOGO_BIG_SIZE = 128 + + register = template.Library() def create_podcast_logo(podcast, size): size = int(size) diff --git a/mygpo/web/views/users.py b/mygpo/web/views/users.py index d3db6c06..fa049861 100644 --- a/mygpo/web/views/users.py +++ b/mygpo/web/views/users.py @@ -35,7 +35,9 @@ from mygpo.decorators import allowed_methods, repeat_on_conflict from mygpo.web.forms import RestorePasswordForm from mygpo.users.models import User from mygpo.web.forms import ResendActivationForm -from mygpo.constants import DEFAULT_LOGIN_REDIRECT + + +DEFAULT_LOGIN_REDIRECT = '/' @repeat_on_conflict(['user']) -- 2.11.4.GIT