cleanup imports
This commit is contained in:
parent
1e0f93bbf2
commit
12440acd96
22 changed files with 119 additions and 122 deletions
|
|
@ -2,28 +2,28 @@
|
|||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
|
||||
import os
|
||||
|
||||
import tornado
|
||||
from tornado.web import Application
|
||||
from tornado.httpserver import HTTPServer
|
||||
from tornado.ioloop import PeriodicCallback
|
||||
|
||||
import settings
|
||||
|
||||
import directory
|
||||
from oxtornado import run_async
|
||||
from utils import valid, get_public_ipv6
|
||||
from websocket import trigger_event
|
||||
import cert
|
||||
import db
|
||||
import directory
|
||||
import json
|
||||
import nodeapi
|
||||
import settings
|
||||
import state
|
||||
import user
|
||||
|
||||
import json
|
||||
from utils import valid, get_public_ipv6
|
||||
import nodeapi
|
||||
import cert
|
||||
from websocket import trigger_event
|
||||
from oxtornado import run_async
|
||||
|
||||
import logging
|
||||
logger = logging.getLogger('oml.node.server')
|
||||
|
||||
|
||||
class NodeHandler(tornado.web.RequestHandler):
|
||||
|
||||
def initialize(self):
|
||||
|
|
@ -101,7 +101,6 @@ class ShareHandler(tornado.web.RequestHandler):
|
|||
pass
|
||||
|
||||
def get(self, id):
|
||||
import db
|
||||
import item.models
|
||||
with db.session():
|
||||
i = item.models.Item.get(id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue