From f7d94e9266e9cb427ed4f810b873d9d1daef0714 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Thu, 5 Feb 2015 10:58:18 +0000
Subject: [PATCH] SSDM-1070 : PAPER - OPENBIS - Migrate Manage Properties
 YeastLab (Configurable)

SVN: 33395
---
 .../drop-boxes/stellingmigration/managed.py   |   6 +-
 .../drop-boxes/stellingmigration/migration.py | 116 ++++++++++--------
 2 files changed, 67 insertions(+), 55 deletions(-)

diff --git a/plasmid/source/core-plugins/stellingmigration/1/dss/drop-boxes/stellingmigration/managed.py b/plasmid/source/core-plugins/stellingmigration/1/dss/drop-boxes/stellingmigration/managed.py
index 9e5b5b28f9b..edf1c6f70db 100644
--- a/plasmid/source/core-plugins/stellingmigration/1/dss/drop-boxes/stellingmigration/managed.py
+++ b/plasmid/source/core-plugins/stellingmigration/1/dss/drop-boxes/stellingmigration/managed.py
@@ -35,7 +35,11 @@ configuration["READOUT"] = {
                           "SOLUTION_BUFFERS" : {"QUANTITY" : False, "NAME" : False },
                           "GENERAL_PROTOCOL" : {"NAME" : False }
                          };
-                         
+
+configuration["READOUT"] = {
+                          "ANNOTATIONS" : {"QUANTITY" : False, "NAME" : False, "DETAIL" : False }
+                         };
+
 #Global Variables
 annotableType = "<REPLACE_WITH_ANNOTABLE_TYPE>"
 server = CommonServiceProvider.getCommonServer()
diff --git a/plasmid/source/core-plugins/stellingmigration/1/dss/drop-boxes/stellingmigration/migration.py b/plasmid/source/core-plugins/stellingmigration/1/dss/drop-boxes/stellingmigration/migration.py
index 9d1030ca802..67576998d2e 100644
--- a/plasmid/source/core-plugins/stellingmigration/1/dss/drop-boxes/stellingmigration/migration.py
+++ b/plasmid/source/core-plugins/stellingmigration/1/dss/drop-boxes/stellingmigration/migration.py
@@ -9,60 +9,60 @@ import xml.etree.ElementTree as ET
 ##
 
 definitions = {
-#                "GENERAL_PROTOCOL" : 
-#                                     { 
-#                                      "CHEMICALS" : {
-#                                                     "quantity" : "QUANTITY",
-#                                                     "name" : "NAME"
-#                                                     },
-#                                      "SOLUTIONS_BUFFERS" : {
-#                                                     "quantity" : "QUANTITY",
-#                                                     "name" : "NAME"
-#                                                     },
-#                                      "MEDIA" : {
-#                                                     "quantity" : "QUANTITY",
-#                                                     "name" : "NAME"
-#                                                     },
-#                                      "GENERAL_PROTOCOL" : {
-#                                                     "name" : "NAME"
-#                                                     }
-#                                     },
-#                "MEDIA" : 
-#                                     { 
-#                                      "CHEMICALS" : {
-#                                                     "concentration" : "QUANTITY",
-#                                                     "name" : "NAME"
-#                                                     },
-#                                      "SOLUTIONS_BUFFERS" : {
-#                                                     "concentration" : "QUANTITY",
-#                                                     "name" : "NAME"
-#                                                     },
-#                                      "MEDIA" : {
-#                                                     "concentration" : "QUANTITY",
-#                                                     "name" : "NAME"
-#                                                     }
-#                                     },
-#                "PCR" : 
-#                                     { 
-#                                      "CHEMICALS" : {
-#                                                     "quantity" : "QUANTITY",
-#                                                     "name" : "NAME"
-#                                                     },
-#                                      "SOLUTIONS_BUFFERS" : {
-#                                                     "quantity" : "QUANTITY",
-#                                                     "name" : "NAME"
-#                                                     },
-#                                      "ENZYMES" : {
-#                                                     "name" : "NAME"
-#                                                     }
-#                                     },
-#                "POMBE" : 
-#                                     { 
-#                                      "PLASMIDS" : {
-#                                                     "rel" : "RELATIONSHIP",
-#                                                     "annotation" : "ANNOTATION"
-#                                                     }
-#                                     },
+                "GENERAL_PROTOCOL" : 
+                                     { 
+                                      "CHEMICALS" : {
+                                                     "quantity" : "QUANTITY",
+                                                     "name" : "NAME"
+                                                     },
+                                      "SOLUTIONS_BUFFERS" : {
+                                                     "quantity" : "QUANTITY",
+                                                     "name" : "NAME"
+                                                     },
+                                      "MEDIA" : {
+                                                     "quantity" : "QUANTITY",
+                                                     "name" : "NAME"
+                                                     },
+                                      "GENERAL_PROTOCOL" : {
+                                                     "name" : "NAME"
+                                                     }
+                                     },
+                "MEDIA" : 
+                                     { 
+                                      "CHEMICALS" : {
+                                                     "concentration" : "QUANTITY",
+                                                     "name" : "NAME"
+                                                     },
+                                      "SOLUTIONS_BUFFERS" : {
+                                                     "concentration" : "QUANTITY",
+                                                     "name" : "NAME"
+                                                     },
+                                      "MEDIA" : {
+                                                     "concentration" : "QUANTITY",
+                                                     "name" : "NAME"
+                                                     }
+                                     },
+                "PCR" : 
+                                     { 
+                                      "CHEMICALS" : {
+                                                     "quantity" : "QUANTITY",
+                                                     "name" : "NAME"
+                                                     },
+                                      "SOLUTIONS_BUFFERS" : {
+                                                     "quantity" : "QUANTITY",
+                                                     "name" : "NAME"
+                                                     },
+                                      "ENZYMES" : {
+                                                     "name" : "NAME"
+                                                     }
+                                     },
+                "POMBE" : 
+                                     { 
+                                      "PLASMIDS" : {
+                                                     "rel" : "RELATIONSHIP",
+                                                     "annotation" : "ANNOTATION"
+                                                     }
+                                     },
                "READOUT" : 
                                     { 
                                      "CHEMICALS" : {
@@ -76,6 +76,14 @@ definitions = {
                                      "GENERAL_PROTOCOL" : {
                                                     "name" : "NAME"
                                                     }
+                                    },
+               "RESULT" : 
+                                    { 
+                                     "ANNOTATIONS" : {
+                                                    "quantity" : "QUANTITY",
+                                                    "name" : "NAME",
+                                                    "detail" : "DETAIL"
+                                                    }
                                     }
 };
 
-- 
GitLab