Commit bd764280 authored by Michal Čihař's avatar Michal Čihař

PEP8 fixes

parent d60e14be
......@@ -41,7 +41,9 @@ from weblate.accounts.models import (
notify_new_contributor,
notify_new_language,
)
from weblate.accounts.captcha import hash_question, unhash_question, MathCaptcha
from weblate.accounts.captcha import (
hash_question, unhash_question, MathCaptcha
)
from weblate.accounts.middleware import RequireLoginMiddleware
from weblate.trans.tests.test_views import ViewTestCase
......
......@@ -33,7 +33,10 @@ urlpatterns = patterns(
name='email-sent'
),
url(r'^password/', 'weblate.accounts.views.password', name='password'),
url(r'^reset/', 'weblate.accounts.views.reset_password', name='password_reset'),
url(
r'^reset/', 'weblate.accounts.views.reset_password',
name='password_reset'
),
url(r'^logout/', 'weblate.accounts.views.weblate_logout', name='logout'),
url(r'^profile/', 'weblate.accounts.views.user_profile', name='profile'),
url(r'^login/$', 'weblate.accounts.views.weblate_login', name='login'),
......
......@@ -198,7 +198,8 @@ SOCIAL_AUTH_PIPELINE = (
'weblate.accounts.pipeline.store_email',
)
SOCIAL_AUTH_EMAIL_VALIDATION_FUNCTION = 'weblate.accounts.pipeline.send_validation'
SOCIAL_AUTH_EMAIL_VALIDATION_FUNCTION = \
'weblate.accounts.pipeline.send_validation'
SOCIAL_AUTH_EMAIL_VALIDATION_URL = '%s/accounts/email-sent/' % URL_PREFIX
SOCIAL_AUTH_LOGIN_ERROR_URL = '%s/accounts/login/' % URL_PREFIX
SOCIAL_AUTH_EMAIL_FORM_URL = '%s/accounts/email/' % URL_PREFIX
......
......@@ -26,7 +26,9 @@ from django.core.urlresolvers import reverse
from weblate.trans.models import Change
from weblate.lang.models import Language
from weblate.trans.views.helper import get_translation, get_subproject, get_project
from weblate.trans.views.helper import (
get_translation, get_subproject, get_project
)
class ChangesFeed(Feed):
......
......@@ -18,7 +18,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from weblate.trans.machine.base import MachineTranslation, MachineTranslationError
from weblate.trans.machine.base import (
MachineTranslation, MachineTranslationError
)
from django.core.exceptions import ImproperlyConfigured
from weblate import appsettings
......
......@@ -19,7 +19,9 @@
#
from datetime import datetime, timedelta
from weblate.trans.machine.base import MachineTranslation, MachineTranslationError
from weblate.trans.machine.base import (
MachineTranslation, MachineTranslationError
)
from django.core.exceptions import ImproperlyConfigured
from weblate import appsettings
......
......@@ -20,7 +20,9 @@
from weblate.trans.management.commands import WeblateCommand
from lang.models import Language
from weblate.trans.search import update_index, create_source_index, create_target_index
from weblate.trans.search import (
update_index, create_source_index, create_target_index
)
from optparse import make_option
......
......@@ -20,7 +20,9 @@
from unittest import TestCase
from weblate.trans.simplediff import html_diff
from weblate.trans.templatetags.translations import fmtsourcediff, fmtsearchmatch
from weblate.trans.templatetags.translations import (
fmtsourcediff, fmtsearchmatch
)
from weblate.trans.tests.test_checks import MockUnit
......
......@@ -30,7 +30,9 @@ from weblate.trans.machine.opentran import OpenTranTranslation
from weblate.trans.machine.apertium import ApertiumTranslation
from weblate.trans.machine.tmserver import AmagamaTranslation
from weblate.trans.machine.microsoft import MicrosoftTranslation
from weblate.trans.machine.google import GoogleWebTranslation, GoogleTranslation
from weblate.trans.machine.google import (
GoogleWebTranslation, GoogleTranslation
)
from weblate.trans.machine.weblatetm import (
WeblateSimilarTranslation, WeblateTranslation
)
......
......@@ -22,7 +22,9 @@ from django.utils.translation import ugettext as _
from django.contrib import messages
from django.shortcuts import redirect
from django.contrib.auth.decorators import login_required, permission_required
from weblate.trans.views.helper import get_project, get_subproject, get_translation
from weblate.trans.views.helper import (
get_project, get_subproject, get_translation
)
@login_required
......
......@@ -28,7 +28,9 @@ from django.core.urlresolvers import reverse
from weblate.trans.models import Unit, Check, Dictionary
from weblate.trans.machine import MACHINE_TRANSLATION_SERVICES
from weblate.trans.decorators import any_permission_required
from weblate.trans.views.helper import get_project, get_subproject, get_translation
from weblate.trans.views.helper import (
get_project, get_subproject, get_translation
)
from whoosh.analysis import StandardAnalyzer, StemmingAnalyzer
from urllib import urlencode
......
......@@ -24,7 +24,9 @@ from django.shortcuts import redirect
from django.contrib import messages
from django.contrib.auth.decorators import login_required, permission_required
from weblate.trans.views.helper import get_project, get_subproject, get_translation
from weblate.trans.views.helper import (
get_project, get_subproject, get_translation
)
@login_required
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment