This commit is contained in:
pycook 2016-04-19 10:38:29 +08:00 committed by pycook
parent f15726876c
commit 60233101ed
3 changed files with 3 additions and 18 deletions

View File

@ -18,10 +18,6 @@ from models.account import UserCache
def auth_with_key(func):
@wraps(func)
def wrapper(*args, **kwargs):
# if isinstance(getattr(g, 'user', None), User):
# identity_changed.send(current_app._get_current_object(),
# identity=Identity(g.user.uid))
# return func(*args, **kwargs)
ip = request.remote_addr
if request.data:
request_args = dict()

View File

@ -9,7 +9,7 @@ from lib.const import TableMap
from models.attribute import CIAttributeCache
from models.ci_type import CITypeCache
from extensions import db
from models import CI
from models.ci import CI
from lib.ci import get_cis_by_ids
from lib.query_sql import FACET_QUERY
from lib.query_sql import QUERY_CI_BY_TYPE

View File

@ -11,14 +11,3 @@ def row2dict(row):
else:
d[c.name] = getattr(row, c.name)
return d
from account import *
from attribute import *
from ci import *
from ci_relation import *
from ci_type import *
from ci_type_relation import *
from ci_value import *
from history import *
from statis import *