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

Method __init__

suds/wsse.py:194–201  ·  view source on GitHub ↗

@param validity: The time in seconds. @type validity: int

(self, validity=90)

Source from the content-addressed store, hash-verified

192 """
193
194 def __init__(self, validity=90):
195 """
196 @param validity: The time in seconds.
197 @type validity: int
198 """
199 Token.__init__(self)
200 self.created = Token.utc()
201 self.expires = self.created + timedelta(seconds=validity)
202
203 def xml(self):
204 root = Element("Timestamp", ns=wsuns)

Callers

nothing calls this directly

Calls 2

utcMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected