This commit is contained in:
yumoqing 2022-01-03 11:53:39 +08:00
parent cd6be234de
commit e38de4c412
2 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,8 @@ class BaseProcessor:
kw = await self.run_ns['request2ns']()
self.run_ns['params_kw'] = kw
self.run_ns.update(kw)
self.run_ns['ref_real_path'] = self.path
self.run_ns['ref_real_path'] = self.real_path
self.run_ns['processor'] = self
async def execute(self,request):
await self.set_run_env(request)

View File

@ -193,6 +193,7 @@ class ProcessorResource(StaticResource,Url2File):
self.y_env.gethost = gethost
self.y_env.path_call = partial(self.path_call,request)
self.user = await auth.get_auth(request)
self.y_env.user = self.user
self.request_filename = self.url2file(str(request.url))
path = request.path
config = getConfig()