Accept comma-separated list of locators in Keep.get()
authorTom Clegg <tom@curoverse.com>
Mon, 6 Jan 2014 20:04:18 +0000 (12:04 -0800)
committerTom Clegg <tom@curoverse.com>
Mon, 6 Jan 2014 20:04:18 +0000 (12:04 -0800)
sdk/python/arvados/__init__.py

index ba220cca3d147e7aebfc742180ccecbf7429ecb5..a7b3b3259d98776371890a3cb3bf56b7e50265bd 100644 (file)
@@ -995,6 +995,8 @@ class KeepClient(object):
         return pseq
 
     def get(self, locator):
+        if re.search(r',', locator):
+            return ''.join(self.get(x) for x in locator.split(','))
         if 'KEEP_LOCAL_STORE' in os.environ:
             return KeepClient.local_store_get(locator)
         expect_hash = re.sub(r'\+.*', '', locator)