deflistAllSnapshots(self,flags):"""List all snapshots and returns a list of snapshot objects"""ret=libvirtmod.virDomainListAllSnapshots(self._o,flags)ifretisNone:raiselibvirtError("virDomainListAllSnapshots() failed",conn=self)retlist=list()forsnapptrinret:retlist.append(virDomainSnapshot(self,_obj=snapptr))returnretlist