MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / xml

Method xml

suds/wsse.py:203–211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 self.expires = self.created + timedelta(seconds=validity)
202
203 def xml(self):
204 root = Element("Timestamp", ns=wsuns)
205 created = Element('Created', ns=wsuns)
206 created.setText(str(DateTime(self.created)))
207 expires = Element('Expires', ns=wsuns)
208 expires.setText(str(DateTime(self.expires)))
209 root.append(created)
210 root.append(expires)
211 return root

Callers

nothing calls this directly

Calls 4

setTextMethod · 0.95
appendMethod · 0.95
ElementClass · 0.90
DateTimeClass · 0.90

Tested by

no test coverage detected