mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 08:56:17 +00:00
*Manager classes get their own package
This commit is contained in:
parent
cb5e7bf2f7
commit
1994e1e1a2
@ -6,7 +6,7 @@ import cgi
|
||||
import uuid
|
||||
|
||||
from web import app
|
||||
from user_manager import UserManager
|
||||
from managers.user import UserManager
|
||||
|
||||
@app.before_request
|
||||
def set_formatter():
|
||||
|
@ -3,7 +3,7 @@
|
||||
from flask import request
|
||||
from web import app
|
||||
from db import User
|
||||
from user_manager import UserManager
|
||||
from managers.user import UserManager
|
||||
|
||||
@app.route('/rest/getUser.view', methods = [ 'GET', 'POST' ])
|
||||
def user_info():
|
||||
|
2
cli.py
2
cli.py
@ -75,7 +75,7 @@ if __name__ == "__main__":
|
||||
import db
|
||||
db.init_db()
|
||||
|
||||
from folder_manager import FolderManager
|
||||
from managers.folder import FolderManager
|
||||
from scanner import Scanner
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
|
@ -7,8 +7,8 @@ import uuid
|
||||
from web import app
|
||||
from db import session, Folder
|
||||
from scanner import Scanner
|
||||
from user_manager import UserManager
|
||||
from folder_manager import FolderManager
|
||||
from managers.user import UserManager
|
||||
from managers.folder import FolderManager
|
||||
|
||||
@app.before_request
|
||||
def check_admin():
|
||||
|
0
managers/__init__.py
Normal file
0
managers/__init__.py
Normal file
2
user.py
2
user.py
@ -3,7 +3,7 @@
|
||||
from flask import request, session, flash, render_template, redirect, url_for, make_response
|
||||
|
||||
from web import app
|
||||
from user_manager import UserManager
|
||||
from managers.user import UserManager
|
||||
from db import User, session as db_sess
|
||||
import uuid, csv
|
||||
import config
|
||||
|
Loading…
Reference in New Issue
Block a user