Use new-style classes everywhere

This commit is contained in:
Sunil Mohan Adapa committed 2014-06-06 18:21:54 +05:30
1 parent a958798769
commit ef493ae243
25 files changed
+117 -86

No files matched your search

+2 -2
View File
@@ -36,8 +36,8 @@ class LoginForm(forms.Form): # pylint: disable-msg=W0232
class AuthController(PagePlugin):
"""Login and logout pages"""
def __init__(self, *args, **kwargs):
PagePlugin.__init__(self, *args, **kwargs)
def __init__(self):
super(AuthController, self).__init__()
self.register_page('auth')
+3
View File
@@ -4,8 +4,11 @@ from model import User
from plugin_mount import UserStoreModule
from withsqlite.withsqlite import sqlite_db
class UserStore(UserStoreModule, sqlite_db):
def __init__(self):
super(UserStore, self).__init__()
self.db_file = cfg.user_db
sqlite_db.__init__(self, self.db_file, autocommit=True, check_same_thread=False)
self.__enter__()