(self, lwrite, level, nsmap, namespace_=XML_NS, name_='COARequestedType', namespacedef_='', pretty_print=True)
| 697 | else: |
| 698 | return False |
| 699 | def export(self, lwrite, level, nsmap, namespace_=XML_NS, name_='COARequestedType', namespacedef_='', pretty_print=True): |
| 700 | if pretty_print: |
| 701 | eol_ = '\n' |
| 702 | else: |
| 703 | eol_ = '' |
| 704 | showIndent(lwrite, level, pretty_print) |
| 705 | lwrite('<%s:%s%s' % (nsmap[namespace_], name_, namespacedef_ and ' ' + namespacedef_ or '', )) |
| 706 | already_processed = set() |
| 707 | self.exportAttributes(lwrite, level, already_processed, namespace_, name_='COARequestedType') |
| 708 | if self.hasContent_(): |
| 709 | lwrite('>%s' % (eol_, )) |
| 710 | self.exportChildren(lwrite, level + 1, nsmap, XML_NS, name_, pretty_print=pretty_print) |
| 711 | showIndent(lwrite, level, pretty_print) |
| 712 | lwrite('</%s:%s>%s' % (nsmap[namespace_], name_, eol_)) |
| 713 | else: |
| 714 | lwrite('/>%s' % (eol_, )) |
| 715 | def exportAttributes(self, lwrite, level, already_processed, namespace_='incident:', name_='COARequestedType'): |
| 716 | super(COARequestedType, self).exportAttributes(lwrite, level, already_processed, namespace_, name_='COARequestedType') |
| 717 | if self.priority is not None and 'priority' not in already_processed: |
nothing calls this directly
no test coverage detected