Total Complexity | 3 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 2 | Features | 1 |
1 | from groundwork.patterns import GwDocumentsPattern |
||
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 |