MCPcopy Index your code
hub / github.com/STIXProject/python-stix / exportAttributes

Method exportAttributes

stix/bindings/incident.py:715–719  ·  view source on GitHub ↗
(self, lwrite, level, already_processed, namespace_='incident:', name_='COARequestedType')

Source from the content-addressed store, hash-verified

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:
718 already_processed.add('priority')
719 lwrite(' priority=%s' % (quote_attrib(self.priority), ))
720 def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='COARequestedType', fromsubclass_=False, pretty_print=True):
721 super(COARequestedType, self).exportChildren(lwrite, level, nsmap, namespace_, name_, True, pretty_print=pretty_print)
722 def build(self, node):

Callers 1

exportMethod · 0.95

Calls 2

exportAttributesMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected