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

Method template_path

app/plugins/plugin_base.py:150–158  ·  view source on GitHub ↗

:param path: unix-style path :return: path used to reference Django templates for a plugin

(self, path)

Source from the content-addressed store, hash-verified

148 return ".." in os.path.relpath(self.get_path(), get_plugins_persistent_path())
149
150 def template_path(self, path):
151 """
152 :param path: unix-style path
153 :return: path used to reference Django templates for a plugin
154 """
155 if self.is_persistent():
156 return "coreplugins/{}/templates/{}".format(self.get_name(), path)
157 else:
158 return "plugins/{}/templates/{}".format(self.get_name(), path)
159
160
161 def path_exists(self, path):

Callers 12

indexMethod · 0.80
homeMethod · 0.80
viewFunction · 0.80
indexMethod · 0.80
diagnosticMethod · 0.80
app_mount_pointsMethod · 0.80
gcpiMethod · 0.80
mainMethod · 0.80
main_jsMethod · 0.80
viewFunction · 0.80
indexMethod · 0.80
hello_viewMethod · 0.80

Calls 3

is_persistentMethod · 0.95
get_nameMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected