Total Complexity | 5 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | #!/usr/bin/env python |
||
9 | class REPP: |
||
10 | def __init__(self, config): |
||
11 | self.config = config |
||
12 | self.connect() |
||
13 | |||
14 | def connect(self): |
||
15 | self.epp = EPP(self.config) |
||
16 | self.greeting = self.epp.greeting |
||
17 | |||
18 | def get_greeting(self): |
||
19 | return self.greeting |
||
20 | |||
21 | def request(self, xml): |
||
22 | res = self.epp.request(xml) |
||
23 | if not res: |
||
24 | self.connect() |
||
25 | res = self.epp.request(xml) |
||
26 | return res |
||
27 | |||
53 |