:param path: unix-style path :return: path used to reference Django templates for a plugin
(self, path)
| 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): |
no test coverage detected