This commit is contained in:
yumoqing 2022-09-20 11:54:03 +08:00
parent f3150d9672
commit c16e6bbe98
3 changed files with 6 additions and 8 deletions

View File

@ -722,7 +722,7 @@ class Blocks(EventDispatcher):
children = [i for i in from_widget.children]
if hasattr(from_widget, 'get_subwidgets'):
children = from_widget.get_subwidgets()
Logger.info('children=%s', str(children))
# Logger.info('children=%s', str(children))
for c in children:
ret = _find_widget(name, from_widget=c, dir=dir)
if ret:
@ -734,8 +734,6 @@ class Blocks(EventDispatcher):
return _find_widget(name,
from_widget=from_widget.parent,
dir=dir)
Logger.info('Block:_find_widget(), %s, %s %s return None',
name, from_widget.__class__.__name__, dir)
return None
def find_widget(step, from_widget):

View File

@ -26,7 +26,7 @@ class Script:
def __init__(self):
config = getConfig()
self.root = config.script_root
print('Script.root=', self.root)
# print('Script.root=', self.root)
self.env = {}
self.handlers = {}
self.register('.tmpl', TemplateHandler)
@ -62,9 +62,9 @@ class Script:
env['root_path'] = self.root
env['url'] = url
env['filepath'] = filepath
print(f"workdir={env['workdir']}--------")
if platform == 'android':
self.show_info(env)
# print(f"workdir={env['workdir']}--------")
# if platform == 'android':
# self.show_info(env)
h = handler(env)
d = h.render()

View File

@ -1 +1 @@
__version__ = '0.3.16'
__version__ = '0.3.17'