@@ -66,13 +66,13 @@ def _get_channel_name (self):
66
66
return self .uuid
67
67
68
68
def _get_resource_path (self ):
69
- return '{}/{}' .format (self ._collection_path , self .uuid )
69
+ return '{1 }/{2 }' .format (self ._collection_path , self .uuid )
70
70
71
71
@classmethod
72
72
def get (cls , uuid , sdk ):
73
73
if not uuid or not isinstance (uuid , basestring ):
74
74
return None
75
- path = '{}/{}' .format (cls ._collection_path , uuid )
75
+ path = '{1 }/{2 }' .format (cls ._collection_path , uuid )
76
76
try :
77
77
remote_document = sdk .api .get (path )
78
78
except sdk .exceptions .ApiError as exception :
@@ -292,11 +292,11 @@ def value(self, value):
292
292
self .document ['value' ] = value
293
293
294
294
def _get_resource_path (self ):
295
- return '{}/{}/{}' .format (self ._collection_path , self .group , self .key )
295
+ return '{1 }/{2 }/{3 }' .format (self ._collection_path , self .group , self .key )
296
296
297
297
@classmethod
298
298
def get (cls , group , key , sdk ):
299
- path = '{}/{}/{}' .format (cls ._collection_path , group , key )
299
+ path = '{1 }/{2 }/{3 }' .format (cls ._collection_path , group , key )
300
300
try :
301
301
document = sdk .api .get (path )
302
302
except sdk .exceptions .ApiError as exception :
@@ -307,7 +307,7 @@ def get (cls, group, key, sdk):
307
307
308
308
@classmethod
309
309
def create (cls , group , key , value , sdk ):
310
- path = '{}/{}/{}' .format (cls ._collection_path , group , key )
310
+ path = '{1 }/{2 }/{3 }' .format (cls ._collection_path , group , key )
311
311
document = sdk .api .put (path , value )
312
312
data = cls (document , sdk )
313
313
return data
@@ -316,7 +316,7 @@ def save (self):
316
316
self ._document = self ._sdk .api .put (self ._get_resource_path (), self .value )
317
317
318
318
def _get_channel_name (self ):
319
- return 'data:{}:{}' .format (self .group , self .key )
319
+ return 'data:{1 }:{2 }' .format (self .group , self .key )
320
320
321
321
322
322
0 commit comments