Pep8 check most files

I left some errors on puppetboard/forms.py because I'm not
sure how to fix them.
This commit is contained in:
Spencer Krum
2013-10-29 11:51:51 -07:00
parent 7265dc2fd0
commit 49afb9ed34
5 changed files with 24 additions and 24 deletions

2
dev.py
View File

@@ -5,5 +5,5 @@ from puppetboard.app import app
from puppetboard.default_settings import DEV_LISTEN_HOST, DEV_LISTEN_PORT
if __name__ == '__main__':
app.debug=True
app.debug = True
app.run(DEV_LISTEN_HOST, DEV_LISTEN_PORT)

View File

@@ -17,4 +17,3 @@ try:
from puppetboard.app import app as application
except Exception, inst:
logging.exception("Error: %s", str(type(inst)))

View File

@@ -1,11 +1,11 @@
PUPPETDB_HOST='localhost'
PUPPETDB_PORT=8080
PUPPETDB_SSL=False
PUPPETDB_KEY=None
PUPPETDB_CERT=None
PUPPETDB_TIMEOUT=20
DEV_LISTEN_HOST='127.0.0.1'
DEV_LISTEN_PORT=5000
UNRESPONSIVE_HOURS=2
ENABLE_QUERY=True
LOGLEVEL='info'
PUPPETDB_HOST = 'localhost'
PUPPETDB_PORT = 8080
PUPPETDB_SSL = False
PUPPETDB_KEY = None
PUPPETDB_CERT = None
PUPPETDB_TIMEOUT = 20
DEV_LISTEN_HOST = '127.0.0.1'
DEV_LISTEN_PORT = 5000
UNRESPONSIVE_HOURS = 2
ENABLE_QUERY = True
LOGLEVEL = 'info'

View File

@@ -4,6 +4,7 @@ from __future__ import absolute_import
from flask.ext.wtf import Form
from wtforms import RadioField, TextAreaField, validators
class QueryForm(Form):
"""The form used to allow freeform queries to be executed against
PuppetDB."""
@@ -17,4 +18,3 @@ class QueryForm(Form):
('reports', 'Reports'),
('events', 'Events'),
])

View File

@@ -6,6 +6,7 @@ from pypuppetdb.errors import EmptyResponseError
from flask import abort
def get_or_abort(func, *args, **kwargs):
"""Execute the function with its arguments and handle the possible
errors that might occur.