Browse files

Pylint recommended fixes.

  • Loading branch information...
1 parent 7c182db commit 1724fc963763d24321c2cf7586e3e0870c532a22 @jace jace committed May 7, 2012
Showing with 9 additions and 6 deletions.
  1. +3 −0 .gitignore
  2. +1 −1 hgapp/__init__.py
  3. +1 −1 hgapp/models/user.py
  4. +1 −1 hgapp/views/index.py
  5. +1 −1 hgapp/views/login.py
  6. +2 −2 instance/settings-sample.py
View
3 .gitignore
@@ -16,3 +16,6 @@ nosetests.xml
instance/settings.py
instance/testing.py
instance/production.py
+instance/development.py
+baseframe-packed.css
+baseframe-packed.js
View
2 hgapp/__init__.py
@@ -24,7 +24,7 @@
assets = Environment(app)
js = Bundle(baseframe_js)
css = Bundle(baseframe_css,
- 'css/app.css')
+ 'css/app.css')
assets.register('js_all', js)
assets.register('css_all', css)
View
2 hgapp/models/user.py
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
-from flask import g
from flask.ext.lastuser.sqlalchemy import UserBase
from hgapp.models import db
__all__ = ['User']
+
class User(db.Model, UserBase):
__tablename__ = 'user'
View
2 hgapp/views/index.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
-import os
from flask import render_template
from hgapp import app
+
@app.route('/')
def index():
return render_template('index.html')
View
2 hgapp/views/login.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from flask import Response, redirect, get_flashed_messages, flash
+from flask import Response, redirect, flash
from flask.ext.lastuser import LastUser
from flask.ext.lastuser.sqlalchemy import UserManager
from coaster.views import get_next_url
View
4 instance/settings-sample.py
@@ -28,6 +28,6 @@
MAIL_SERVER = 'localhost'
DEFAULT_MAIL_SENDER = ('HasGeek', 'test@example.com')
#: Logging: recipients of error emails
-ADMINS=[]
+ADMINS = []
#: Log file
-LOGFILE='error.log'
+LOGFILE = 'error.log'

0 comments on commit 1724fc9

Please sign in to comment.