| Total Complexity | 1 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | # coding=utf-8 |
||
| 7 | class TemplateFilenameBackendBase(object): |
||
| 8 | """ |
||
| 9 | A base class of TemplateFilenameBackend |
||
| 10 | """ |
||
| 11 | def prepare_filenames(self, normalized_url, request): |
||
| 12 | """ |
||
| 13 | Prepare template filename list |
||
| 14 | |||
| 15 | Args: |
||
| 16 | normalized_url (str): A normalized url |
||
| 17 | request (instance): An instance of HttpRequest |
||
| 18 | |||
| 19 | Returns: |
||
| 20 | list |
||
| 21 | |||
| 22 | Raises: |
||
| 23 | NotImplementedError |
||
| 24 | """ |
||
| 25 | raise NotImplementedError( |
||
| 26 | "Subclass of TemplateFilenameBackendBase need to " |
||
| 27 | "override 'prepare_filename' method.") |
||
| 29 |