bugfix
This commit is contained in:
parent
514c686be3
commit
ce2765afb1
@ -29,6 +29,7 @@ class Script:
|
|||||||
self.root = config.script_root
|
self.root = config.script_root
|
||||||
# print('Script.root=', self.root)
|
# print('Script.root=', self.root)
|
||||||
self.env = {}
|
self.env = {}
|
||||||
|
self.env['uihome'] = config.uihome
|
||||||
self.handlers = {}
|
self.handlers = {}
|
||||||
self.register('.tmpl', TemplateHandler)
|
self.register('.tmpl', TemplateHandler)
|
||||||
self.register('.dspy', DspyHandler)
|
self.register('.dspy', DspyHandler)
|
||||||
@ -87,7 +88,7 @@ class BaseHandler:
|
|||||||
return url
|
return url
|
||||||
tokens = url.split('/')
|
tokens = url.split('/')
|
||||||
if tokens[0] == '':
|
if tokens[0] == '':
|
||||||
root = self.env['root_path']
|
root = self.env['uihome']
|
||||||
tokens[0] = root
|
tokens[0] = root
|
||||||
return '/'.join(tokens)
|
return '/'.join(tokens)
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
from .factory import *
|
from .factory import *
|
||||||
from .date import *
|
from .date import *
|
||||||
from .time import *
|
|
||||||
from .int import *
|
from .int import *
|
||||||
from .float import *
|
from .float import *
|
||||||
from .amount import *
|
from .amount import *
|
||||||
|
Loading…
Reference in New Issue
Block a user