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: 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, None]) -> 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
-