Completed
Push — master ( 6fd567...f65269 )
by Daniel
90:27 queued 15s
created

DocumentPlugin   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A activate() 0 2 1
A __init__() 0 3 1
A deactivate() 0 2 1
1
from groundwork.patterns import GwDocumentsPattern
2
3
4
class DocumentPlugin(GwDocumentsPattern):
5
    def __init__(self, *args, **kwargs):
6
        self.name = self.__class__.__name__
7
        super().__init__(*args, **kwargs)
8
9
    def activate(self):
10
        self.documents.register("test_document", "test_content")
11
12
    def deactivate(self):
13
        pass
14