Commit 468b1dc2 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: pep8 test corrections

parent 97ac9598
...@@ -43,6 +43,7 @@ logger = logging.getLogger('werkzeug') ...@@ -43,6 +43,7 @@ logger = logging.getLogger('werkzeug')
def login_redirect(*args, **kwargs): def login_redirect(*args, **kwargs):
return redirect(url_for('login')) return redirect(url_for('login'))
@app.before_request @app.before_request
def before_request(): def before_request():
if request.path.startswith('/static') \ if request.path.startswith('/static') \
...@@ -57,6 +58,7 @@ def before_request(): ...@@ -57,6 +58,7 @@ def before_request():
if request.path != "/setAccount" and request.path != "/configAccount": if request.path != "/setAccount" and request.path != "/configAccount":
return redirect(url_for('setAccount')) return redirect(url_for('setAccount'))
# general views # general views
def home(): def home():
return render_template('index.html') return render_template('index.html')
...@@ -644,9 +646,11 @@ def editFile(): ...@@ -644,9 +646,11 @@ def editFile():
def shell(): def shell():
return render_template('shell.html') return render_template('shell.html')
def isSRReady(): def isSRReady():
return isSoftwareReleaseReady(app.config) return isSoftwareReleaseReady(app.config)
#Setup List of URLs #Setup List of URLs
app.add_url_rule('/', 'home', home) app.add_url_rule('/', 'home', home)
app.add_url_rule('/browseWorkspace', 'browseWorkspace', browseWorkspace) app.add_url_rule('/browseWorkspace', 'browseWorkspace', browseWorkspace)
......
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