(self, inner_path)
| 101 | @PluginManager.registerTo("SiteStorage") |
| 102 | class SiteStoragePlugin(object): |
| 103 | def isFile(self, inner_path): |
| 104 | if ".zip/" in inner_path or ".tar.gz/" in inner_path: |
| 105 | match = re.match("^(.*\.(?:tar.gz|tar.bz2|zip))/(.*)", inner_path) |
| 106 | archive_inner_path, path_within = match.groups() |
| 107 | return super(SiteStoragePlugin, self).isFile(archive_inner_path) |
| 108 | else: |
| 109 | return super(SiteStoragePlugin, self).isFile(inner_path) |
| 110 | |
| 111 | def openArchive(self, inner_path): |
| 112 | archive_path = self.getPath(inner_path) |
no outgoing calls