relative path
parent
366d6c2ec7
commit
fff5f5cf85
|
@ -2,8 +2,8 @@
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<script src="/ext_620/ext-all.js"></script>
|
<script src="{base_url}/ext_620/ext-all.js"></script>
|
||||||
<link rel="stylesheet" href="/ext_620/{theme_model}/theme-{theme}/resources/theme-{theme}-all.css">
|
<link rel="stylesheet" href="{base_url}/ext_620/{theme_model}/theme-{theme}/resources/theme-{theme}-all.css">
|
||||||
<script>
|
<script>
|
||||||
Ext.onReady(function () {{
|
Ext.onReady(function () {{
|
||||||
{script}
|
{script}
|
||||||
|
|
|
@ -7,6 +7,8 @@ import cherrypy
|
||||||
THEME_MODEL = 'classic'
|
THEME_MODEL = 'classic'
|
||||||
THEME = 'gray'
|
THEME = 'gray'
|
||||||
|
|
||||||
|
BASE_URL = ''
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
class ExtJS:
|
class ExtJS:
|
||||||
_cp_config = {
|
_cp_config = {
|
||||||
|
@ -23,7 +25,7 @@ class ExtApplication(cp.Application):
|
||||||
def index(self, *args, **kwargs):
|
def index(self, *args, **kwargs):
|
||||||
f = open(os.path.join(os.path.dirname(__file__), 'app.html')).read()
|
f = open(os.path.join(os.path.dirname(__file__), 'app.html')).read()
|
||||||
self.main()
|
self.main()
|
||||||
return f.format(title=self.title, theme=THEME, theme_model=THEME_MODEL, script=str(js.js_manager))
|
return f.format(title=self.title, base_url=BASE_URL, theme=THEME, theme_model=THEME_MODEL, script=str(js.js_manager))
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
def ajax_callback(self, *args, **kwargs):
|
def ajax_callback(self, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue