MCPcopy Create free account
hub / github.com/webpy/webpy / internal

Function internal

web/application.py:745–760  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

743 """
744
745 def internal(self, arg):
746 if "/" in arg:
747 first, rest = arg.split("/", 1)
748 func = prefix + first
749 args = ["/" + rest]
750 else:
751 func = prefix + arg
752 args = []
753
754 if hasattr(self, func):
755 try:
756 return getattr(self, func)(*args)
757 except TypeError:
758 raise web.notfound()
759 else:
760 raise web.notfound()
761
762 return internal
763

Callers

nothing calls this directly

Calls 1

notfoundMethod · 0.80

Tested by

no test coverage detected