Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/x/c/xcp-storage-managers-HEAD/drivers/SR.py   xcp-storage-managers(Download)
    def __init__(self, sr):
        self.sr = sr
        self.__xenapi_locations = {}
        self.__xenapi_records = util.list_VDI_records_in_sr(sr)
        for vdi in self.__xenapi_records.keys():

src/x/c/xcp-storage-managers-HEAD/drivers/ISOSR.py   xcp-storage-managers(Download)
 
        # Synchronise the read-only status with existing VDI records
        __xenapi_records = util.list_VDI_records_in_sr(self)
        __xenapi_locations = {}
        for vdi in __xenapi_records.keys():

src/x/c/xcp-storage-managers-HEAD/drivers/DummySR.py   xcp-storage-managers(Download)
    def check_no_other_vdi_operation_in_progress(self):
        vdis = util.list_VDI_records_in_sr(self.sr)
        vdi_ref = self.session.xenapi.VDI.get_by_uuid(self.uuid)
        del vdis[vdi_ref]
        active_vdis = filter(lambda v: v['current_operations'] != {}, vdis.values())