From d89fa935a625162d494af78719c2d1b901c2f4a0 Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Wed, 21 Aug 2019 18:08:04 +0200
Subject: [PATCH] show validationPlugin in entityTypes

---
 pybis/src/python/pybis/definitions.py | 26 ++++++++++++++++++++------
 1 file changed, 20 insertions(+), 6 deletions(-)

diff --git a/pybis/src/python/pybis/definitions.py b/pybis/src/python/pybis/definitions.py
index 73a9b8562e2..c284137c97b 100644
--- a/pybis/src/python/pybis/definitions.py
+++ b/pybis/src/python/pybis/definitions.py
@@ -54,9 +54,9 @@ def openbis_definitions(entity):
             "multi": "parents children components tags attachments".split(),
         },
         "sampleType": {
-            "attrs_new": "code description autoGeneratedCode generatedCodePrefix subcodeUnique listable showContainer showParents showParentMetadata".split(),
-            "attrs_up":       "description autoGeneratedCode generatedCodePrefix subcodeUnique listable showContainer showParents showParentMetadata".split(),
-            "attrs":     "permId code description autoGeneratedCode generatedCodePrefix subcodeUnique listable showContainer showParents showParentMetadata modificationDate".split(),
+            "attrs_new": "code description autoGeneratedCode generatedCodePrefix subcodeUnique listable showContainer showParents showParentMetadata validationPlugin".split(),
+            "attrs_up": "description autoGeneratedCode generatedCodePrefix subcodeUnique listable showContainer showParents showParentMetadata, validationPlugin".split(),
+            "attrs": "permId code description autoGeneratedCode generatedCodePrefix subcodeUnique listable showContainer showParents showParentMetadata modificationDate validationPlugin".split(),
             "default_attribute_values": {
                 "autoGeneratedCode"   : False,
                 "generatedCodePrefix" : "S",
@@ -328,7 +328,11 @@ fetch_option = {
                 "vocabulary": {
                     "@type": "as.dto.vocabulary.fetchoptions.VocabularyFetchOptions",
                 }
-            }
+            },
+            "plugin": {"@type": "as.dto.plugin.fetchoptions.PluginFetchOptions"}
+        },
+        "validationPlugin": {
+            "@type": "as.dto.plugin.fetchoptions.PluginFetchOptions",
         }
     },
     "materialType": {
@@ -340,7 +344,11 @@ fetch_option = {
                 "vocabulary": {
                     "@type": "as.dto.vocabulary.fetchoptions.VocabularyFetchOptions",
                 }
-            }
+            },
+            "plugin": {"@type": "as.dto.plugin.fetchoptions.PluginFetchOptions"}
+        },
+        "validationPlugin": {
+            "@type": "as.dto.plugin.fetchoptions.PluginFetchOptions",
         }
     },
     "dataSetType": {
@@ -353,6 +361,9 @@ fetch_option = {
                     "@type": "as.dto.vocabulary.fetchoptions.VocabularyFetchOptions",
                 }
             }
+        },
+        "validationPlugin": {
+            "@type": "as.dto.plugin.fetchoptions.PluginFetchOptions",
         }
     },
     "experimentType": {
@@ -365,7 +376,10 @@ fetch_option = {
                     "@type": "as.dto.vocabulary.fetchoptions.VocabularyFetchOptions",
                 }
             }
-        } 
+        }, 
+        "validationPlugin": {
+            "@type": "as.dto.plugin.fetchoptions.PluginFetchOptions",
+        }
     },
     "dataSet": {
         "@type": "as.dto.dataset.fetchoptions.DataSetFetchOptions",
-- 
GitLab