Changeset - 3590fd918dd0
[Not reviewed]
version_5
0 1 0
Dennis Fink - 10 years ago 2015-10-08 22:49:00
dennis.fink@c3l.lu
PEP8 root/views.py
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
ennstatus/root/views.py
Show inline comments
 
@@ -43,29 +43,30 @@ def membership():
 

	
 
    current_app.logger.info('Handling membership')
 
    form = MembershipForm()
 

	
 
    if request.method == 'POST':
 
        current_app.logger.debug('Validating form')
 
        if form.validate_on_submit():
 
            send_membership_mail(form)
 
            return redirect(url_for('root.member'))
 

	
 
    return render_template('root/membership.html', form=form)
 

	
 

	
 
@root_page.route('/mirrors')
 
def mirrors():
 
    return render_template('root/mirrors.html')
 

	
 
    
 

	
 
@root_page.route('/contact', methods=('GET', 'POST'))
 
def contact():
 

	
 
    current_app.logger.info('Handling contact')
 
    form = BPMForm()
 
    country_choices = [choice[0] for choice in form.country.choices]
 

	
 
    if request.method == 'POST':
 
        current_app.logger.debug('Validating form')
 
        if form.validate_on_submit():
 
            country = form.country.data
 
            return redirect(url_for('root.contact', country=country))
0 comments (0 inline, 0 general)