MCPcopy Index your code
hub / github.com/rawpython/remi / search_app_instance

Method search_app_instance

examples/pil_app.py:41–46  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

39 self.refresh()
40
41 def search_app_instance(self, node):
42 if issubclass(node.__class__, remi.server.App):
43 return node
44 if not hasattr(node, "get_parent"):
45 return None
46 return self.search_app_instance(node.get_parent())
47
48 def refresh(self, *args):
49 if self.app_instance==None:

Callers 1

refreshMethod · 0.95

Calls 1

get_parentMethod · 0.80

Tested by

no test coverage detected