Move ef/endpoints/common.py to ef/common.py

Decided it doesn't belong with the endpoints files.
This commit is contained in:
voussoir 2018-02-03 01:43:41 -08:00
parent f7dcb489c5
commit c6a396c658
9 changed files with 12 additions and 14 deletions

View file

@ -1,6 +1,7 @@
from . import common
from . import decorators
from . import endpoints
from . import jsonify
from . import sessions
site = endpoints.site
site = common.site

View file

@ -7,11 +7,11 @@ import etiquette
from voussoirkit import pathclass
from .. import jsonify
from .. import sessions
from . import jsonify
from . import sessions
root_dir = pathclass.Path(__file__).parent.parent.parent
root_dir = pathclass.Path(__file__).parent.parent
TEMPLATE_DIR = root_dir.with_child('templates')
STATIC_DIR = root_dir.with_child('static')

View file

@ -1,16 +1,12 @@
import flask; from flask import request
import random
from . import album_endpoints
from . import basic_endpoints
from . import bookmark_endpoints
from . import common
from . import photo_endpoints
from . import tag_endpoints
from . import user_endpoints
site = common.site
if __name__ == '__main__':
#site.run(threaded=True)

View file

@ -7,7 +7,7 @@ import etiquette
from .. import decorators
from .. import jsonify
from . import common
from .. import common
site = common.site
session_manager = common.session_manager

View file

@ -1,6 +1,7 @@
import flask; from flask import request
import random
from . import common
from .. import common
site = common.site
session_manager = common.session_manager

View file

@ -4,7 +4,7 @@ import etiquette
from .. import decorators
from .. import jsonify
from . import common
from .. import common
site = common.site
session_manager = common.session_manager

View file

@ -7,7 +7,7 @@ import etiquette
from .. import decorators
from .. import jsonify
from . import common
from .. import common
site = common.site
session_manager = common.session_manager

View file

@ -4,7 +4,7 @@ import etiquette
from .. import decorators
from .. import jsonify
from . import common
from .. import common
site = common.site
session_manager = common.session_manager

View file

@ -5,7 +5,7 @@ import etiquette
from .. import decorators
from .. import jsonify
from .. import sessions
from . import common
from .. import common
site = common.site
session_manager = common.session_manager