MCPcopy Index your code
hub / github.com/s3tools/s3cmd / __init__

Method __init__

S3/AccessLog.py:34–38  ·  view source on GitHub ↗
(self, xml = None)

Source from the content-addressed store, hash-verified

32 LOG_TEMPLATE = "<LoggingEnabled><TargetBucket></TargetBucket><TargetPrefix></TargetPrefix></LoggingEnabled>"
33
34 def __init__(self, xml = None):
35 if not xml:
36 xml = self.LOG_DISABLED
37 self.tree = getTreeFromXml(xml)
38 self.tree.attrib['xmlns'] = "http://doc.s3.amazonaws.com/2006-03-01"
39
40 def isLoggingEnabled(self):
41 return (self.tree.find(".//LoggingEnabled") is not None)

Callers

nothing calls this directly

Calls 1

getTreeFromXmlFunction · 0.85

Tested by

no test coverage detected