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