2021-01-22 12:09:14 +00:00
|
|
|
from .main import AuthBaseHandler
|
2021-01-26 12:47:02 +00:00
|
|
|
from .js import js_import, js_code_1
|
2021-01-22 12:09:14 +00:00
|
|
|
import tornado.web
|
2021-01-26 12:47:02 +00:00
|
|
|
# from bokeh.embed import server_document
|
2021-01-22 12:09:14 +00:00
|
|
|
# from jinja2 import Environment, FileSystemLoader
|
|
|
|
|
2021-01-26 12:47:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-22 12:09:14 +00:00
|
|
|
class Spice_1_Handler(AuthBaseHandler):
|
|
|
|
|
|
|
|
@tornado.web.authenticated
|
|
|
|
def get(self,*args,**kwargs):
|
2021-01-26 12:47:02 +00:00
|
|
|
self.render('spice/spice1.html')
|
2021-01-22 12:09:14 +00:00
|
|
|
# script = server_document('http://localhost:5006/bkapp')
|
2021-01-26 12:47:02 +00:00
|
|
|
# self.render('spice/spice1.html',script=script)
|
2021-01-22 12:09:14 +00:00
|
|
|
|
|
|
|
class Spice_2_Handler(AuthBaseHandler):
|
|
|
|
|
|
|
|
@tornado.web.authenticated
|
|
|
|
def get(self,*args,**kwargs):
|
2021-01-26 12:47:02 +00:00
|
|
|
self.render('spice/spice2.html',js_import=js_import,js_code=js_code_1)
|
2021-01-22 12:09:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Spice_3_Handler(AuthBaseHandler):
|
|
|
|
@tornado.web.authenticated
|
|
|
|
def get(self,*args,**kwargs):
|
|
|
|
self.render('spice/spice3.html')
|
|
|
|
|
|
|
|
|
|
|
|
class Spice_4_Handler(AuthBaseHandler):
|
|
|
|
@tornado.web.authenticated
|
|
|
|
def get(self,*args,**kwargs):
|
|
|
|
self.render('spice/spice4.html')
|