Set CSS for tornado manager

master
Douglas Blank 2018-07-26 11:45:22 -04:00
rodzic 5d280e6f2b
commit 18b4c0cfe8
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -98,6 +98,7 @@ class Manager():
self.defaults["$UUID"] = lambda: str(uuid.uuid4())
self.database = database
self.config = {}
self.CSS = ""
self._static_folder = os.path.abspath("./static")
self._template_folder = os.path.abspath("./templates")
self._sass_folder = os.path.abspath("./sass")

Wyświetl plik

@ -60,6 +60,7 @@ class TornadoManager(Manager):
return request
def run(self):
self.config["CSS"] = self.CSS
routes = []
for route, methods, f in app._data.routes:
params = [x.name for x in inspect.signature(f).parameters.values()]