Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/s/y/syndicate-HEAD/ms/storage/storage.py   syndicate(Download)
 
   q_opts["map_func"] = __user_from_access_request
   user_futs = VolumeAccessRequest.ListAll( {"VolumeAccessRequest.volume_id ==": volume_id}, **q_opts )
 
   storagetypes.wait_futures( user_futs )
 
   q_opts["map_func"] = __volume_from_access_request
   vols = VolumeAccessRequest.ListAll( {"VolumeAccessRequest.requester_owner_id ==": user.owner_id, "VolumeAccessRequest.status ==": VolumeAccessRequest.STATUS_GRANTED}, **q_opts )
 
   ret = filter( lambda x: x != None, vols )
 
   q_opts["map_func"] = __volume_from_access_request
   vols = VolumeAccessRequest.ListAll( {"VolumeAccessRequest.requester_owner_id ==": user.owner_id, "VolumeAccessRequest.status ==": VolumeAccessRequest.STATUS_PENDING}, **q_opts )
 
   ret = filter( lambda x: x != None, vols )