def getChild(self, name, request):
out = Resource.getChild(self, name, request)
LOGGER.warning("%s - %s", request.path, out.__class__.__name__)
if isinstance(out, NoResource):
# this matches the pre-existing behavior
# of accepting any post as a message forward
components = request.path.split('/')
while components and components[0] == '':
components.pop(0)
LOGGER.warning("%s - %d", components, len(components))
if len(components) > 0:
out = ForwardPage(self.validator, components[0])
return out
root_page.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录