(self, inner_path, *args, **kwargs)
| 201 | @PluginManager.registerTo("ContentManager") |
| 202 | class ContentManagerPlugin(object): |
| 203 | def getFileInfo(self, inner_path, *args, **kwargs): |
| 204 | if "|" not in inner_path: |
| 205 | return super(ContentManagerPlugin, self).getFileInfo(inner_path, *args, **kwargs) |
| 206 | |
| 207 | inner_path, file_range = inner_path.split("|") |
| 208 | pos_from, pos_to = map(int, file_range.split("-")) |
| 209 | file_info = super(ContentManagerPlugin, self).getFileInfo(inner_path, *args, **kwargs) |
| 210 | return file_info |
| 211 | |
| 212 | def readFile(self, file_in, size, buff_size=1024 * 64): |
| 213 | part_num = 0 |
no outgoing calls