From d131e6dee35a6bcee13d71f5114b93525d08459a Mon Sep 17 00:00:00 2001 From: Hussain Parsaiyan Date: Mon, 28 Apr 2014 13:13:51 +0500 Subject: [PATCH 1/2] example code of preallocated checkin --- .../doc/tactic-developer/developer/client-api-checkin/index.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/section/doc/tactic-developer/developer/client-api-checkin/index.txt b/section/doc/tactic-developer/developer/client-api-checkin/index.txt index a8d1917..2d844ba 100644 --- a/section/doc/tactic-developer/developer/client-api-checkin/index.txt +++ b/section/doc/tactic-developer/developer/client-api-checkin/index.txt @@ -305,7 +305,7 @@ of a preallocated check-in using a piecewise approach: # get the preallocated path snapshot_code = snapshot.get('code') - file_pattern = snapshot.get_preallocated_path(snapshot_code, file_type="main") + file_pattern = my.server.get_preallocated_path(snapshot_code, file_type="main") print "file_pattern: ", file_path # generate the files From 7bbc8798c1b94ba370e13c479d55f736aea96493 Mon Sep 17 00:00:00 2001 From: Hussain Parsaiyan Date: Mon, 28 Apr 2014 18:06:55 +0500 Subject: [PATCH 2/2] buggy example codes fixed get_preallocated_path should take file_name to produce the desired output shown later and add_group takes file_path --- .../tactic-developer/developer/client-api-checkin/index.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/section/doc/tactic-developer/developer/client-api-checkin/index.txt b/section/doc/tactic-developer/developer/client-api-checkin/index.txt index 2d844ba..d8b3c70 100644 --- a/section/doc/tactic-developer/developer/client-api-checkin/index.txt +++ b/section/doc/tactic-developer/developer/client-api-checkin/index.txt @@ -305,7 +305,8 @@ of a preallocated check-in using a piecewise approach: # get the preallocated path snapshot_code = snapshot.get('code') - file_pattern = my.server.get_preallocated_path(snapshot_code, file_type="main") + file_name = "XG002_beauty_v012.%0.4d.tif" + file_pattern = my.server.get_preallocated_path(snapshot_code, file_type="main", file_name = file_name) print "file_pattern: ", file_path # generate the files @@ -314,7 +315,7 @@ of a preallocated check-in using a piecewise approach: render_file(file_path) # add the files to the snapshot - snapshot = server.add_group(snapshot_code, file_type="main", file_range="1-20", mode="preallocate") + snapshot = server.add_group(snapshot_code, file_pattern, file_type="main", file_range="1-20", mode="preallocate") print snapshot.get("snapshot") -------------------------------------------------------------------------------------------------------