def getBucketVersioning(self,name): bucket_path = self._getBucketPath(name) path = os.path.join(bucket_path,"versioning.xml") if not os.path.exists(path): return None data = self._readFile(path) myDict = XmlToDict(data).getDict() ver = BucketVersioning() ver.setByDict(myDict['VersioningConfiguration']) return ver