MCPcopy Index your code
hub / github.com/WebODM/WebODM / MountPoint

Class MountPoint

app/plugins/mount_point.py:3–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import re
2
3class MountPoint:
4 def __init__(self, url, view, *args, **kwargs):
5 """
6 :param url: path to mount this view to, relative to plugins directory
7 :param view: Django/DjangoRestFramework view
8 :param args: extra args to pass to url() call
9 :param kwargs: extra kwargs to pass to url() call
10 """
11 super().__init__()
12
13 self.url = re.sub(r'^/+', '', url) # remove leading slashes
14 self.view = view
15 self.args = args
16 self.kwargs = kwargs

Callers 15

app_mount_pointsMethod · 0.90
api_mount_pointsMethod · 0.90
api_mount_pointsMethod · 0.90
app_mount_pointsMethod · 0.90
api_mount_pointsMethod · 0.90
api_mount_pointsMethod · 0.90
app_mount_pointsMethod · 0.90
app_mount_pointsMethod · 0.90
app_mount_pointsMethod · 0.90
app_mount_pointsMethod · 0.90
root_mount_pointsMethod · 0.90
api_mount_pointsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected