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

DocumentPlugin.deactivate()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
c 1
b 1
f 0
dl 0
loc 2
rs 10
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