forked from gergely/calendar-social
Make PyLint happy again
This commit is contained in:
parent
0a3cfafef3
commit
5550e5ecf3
@ -403,6 +403,9 @@ class CalendarSocialApp(Flask):
|
|||||||
@route('/edit-profile', methods=['GET', 'POST'])
|
@route('/edit-profile', methods=['GET', 'POST'])
|
||||||
@login_required
|
@login_required
|
||||||
def edit_profile():
|
def edit_profile():
|
||||||
|
"""View for editing one’s profile
|
||||||
|
"""
|
||||||
|
|
||||||
from .forms import ProfileForm
|
from .forms import ProfileForm
|
||||||
from .models import db
|
from .models import db
|
||||||
|
|
||||||
@ -418,6 +421,9 @@ class CalendarSocialApp(Flask):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
@route('/all-events')
|
@route('/all-events')
|
||||||
def all_events():
|
def all_events():
|
||||||
|
"""View for listing all available events
|
||||||
|
"""
|
||||||
|
|
||||||
from .calendar_system.gregorian import GregorianCalendar
|
from .calendar_system.gregorian import GregorianCalendar
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -330,6 +330,7 @@ class FirstStepsForm(FlaskForm):
|
|||||||
display_name = StringField(
|
display_name = StringField(
|
||||||
label=_('Display name'),
|
label=_('Display name'),
|
||||||
validators=[DataRequired()],
|
validators=[DataRequired()],
|
||||||
|
# pylint: disable=line-too-long
|
||||||
description=_('This will be shown to other users as your name. You can use your real name, or any nickname you like.'))
|
description=_('This will be shown to other users as your name. You can use your real name, or any nickname you like.'))
|
||||||
time_zone = TimezoneField(
|
time_zone = TimezoneField(
|
||||||
label=_('Your time zone'),
|
label=_('Your time zone'),
|
||||||
|
Loading…
Reference in New Issue
Block a user