mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Use new-style classes everywhere
This commit is contained in:
1 parent
a958798769
commit
ef493ae243
25 files changed
+117
-86
No files matched your search
@@ -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')
|
||||
|
||||
|
||||
@@ -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__()
|
||||
|
||||
Reference in new issue
Block a user