malcolm.modules.web.hooks¶
- class malcolm.modules.web.hooks.ReportHandlersHook(part: Anno(name='APart', typ=<class 'malcolm.core.part.Part'>, description='The part that has attached to the Hook'))[source]¶
Called at init() to get all the handlers that should make the application
- Parameters
part (Part) – The part that has attached to the Hook
- validate_return(ret: Optional[Union[Anno(name='AHandlerInfos', typ=<class 'malcolm.modules.web.infos.HandlerInfo'>, description='Any handlers and regexps that should form part of tornado App'), Sequence[malcolm.modules.web.infos.HandlerInfo], malcolm.modules.web.infos.HandlerInfo]]) -> Anno(name='AHandlerInfos', typ=<class 'malcolm.modules.web.infos.HandlerInfo'>, description='Any handlers and regexps that should form part of tornado App')[source]¶
Override this if the function is expected to return something to to validate its value