-
Notifications
You must be signed in to change notification settings - Fork 12
/
example_webui_run.py
executable file
·36 lines (28 loc) · 1.27 KB
/
example_webui_run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python
# -*-coding:utf-8-*-
import os
import sys
try:
# Try load installed version first.
import luiti
luiti
except:
root_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, root_dir)
import logging
logger = logging.getLogger("luiti.server")
# link webui_packages path
from luiti.tests import SetupLuitiPackages
config = SetupLuitiPackages.config
from luiti.daemon import Server
task_list_url = "http://localhost:8082/luiti/dag_visualiser?date_value=2015-07-09T00%3A00%3A00%2B08%3A00&language=English&luiti_package=luiti_summary&luiti_package=luiti_clean&luiti_package=luiti_dump&luiti_package=luiti_middle&luiti_package=project_A&luiti_package=project_B"
task_show_url = "http://localhost:8082/luiti/dag_visualiser?date_value=2015-07-09T00%3A00%3A00%2B08%3A00&language=English&luiti_package=luiti_summary&luiti_package=luiti_clean&luiti_package=luiti_dump&luiti_package=luiti_middle&luiti_package=project_A&luiti_package=project_B&task_cls=BetaReportDay"
# generated from http://www.network-science.de/ascii/
print "Welcome to luiti's test webui example!"
print
print " Open below two urls in your favourite browser."
print
print " task_list_url: ", task_list_url
print " task_show_url: ", task_show_url
print
Server("localhost", 8082).run()