| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| 1 | from ..Module import Module |
||
| 3 | class namestoreExt(Module): |
||
| 4 | opmap = { |
||
| 5 | 'nsExtErrData': 'descend', |
||
| 6 | } |
||
| 7 | |||
| 8 | ### RESPONSE parsing |
||
| 9 | |||
| 10 | def parse_msg(self, response, tag): |
||
| 11 | if 'code' in tag.attrib: |
||
| 12 | response.set('nsExtErr.code', tag.attrib['code']) |
||
| 13 | response.set('nsExtErr.msg', tag.text) |
||
| 14 | |||
| 15 | ### REQUEST rendering |
||
| 16 | |||
| 17 | def render_subProduct(self, request): |
||
| 18 | self.render_extension_fields(request, 'namestoreExt', {'subProduct': {}}) |
||
| 19 | |||
| 20 |