(self, arg)
| 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 |