From 27fe0dff96ed3d436c84fec9aa376515de9233bc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 31 Jan 2024 17:43:18 +0800 Subject: [PATCH] bugfix --- ahserver/baseProcessor.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py index bad9cc0..b380c8a 100755 --- a/ahserver/baseProcessor.py +++ b/ahserver/baseProcessor.py @@ -161,12 +161,11 @@ class BricksUIProcessor(TemplateProcessor): print(f'{self.content=}') if params.get('_webbricks_',None): return - else: - txt = self.content - entire_url = self.run_ns.get('entire_url') - content0 = await self.resource.path_call(request,entire_url('/header.tmpl')) - content2 = await self.resource.path_call(request,entire_url('/footer.tmpl')) - self.content = '%s%s%s' % (content0, txt, content2) + txt = self.content + entire_url = self.run_ns.get('entire_url') + content0 = await self.resource.path_call(request,entire_url('/bricks/header.tmpl')) + content2 = await self.resource.path_call(request,entire_url('/bricks/footer.tmpl')) + self.content = '%s%s%s' % (content0, txt, content2) class PythonScriptProcessor(BaseProcessor): @classmethod