Completed
Push — master ( c54497...3b5137 )
by Daniel
58s
created

GwWebDbManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 3 1
A activate() 0 2 1
1
from groundwork_web.patterns import GwWebDbAdminPattern
2
3
4
class GwWebDbManager(GwWebDbAdminPattern):
5
    def __init__(self, *args, **kwargs):
6
        self.name = kwargs.get("name", self.__class__.__name__)
7
        super().__init__(*args, **kwargs)
8
9
    def activate(self):
10
        self.web.db.register()
11