TemplateFilenameBackendBase   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 20
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepare_filenames() 0 16 1
1
# coding=utf-8
2
"""
3
"""
4
__author__ = 'Alisue <[email protected]>'
5
6
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.")
28
29