From 9fc9d0e8560eeffa2f583136d9b90bf219568e12 Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Thu, 9 Jan 2020 11:34:03 +0100
Subject: [PATCH] added description to new_property_type() method

---
 pybis/src/python/pybis/pybis.py | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/pybis/src/python/pybis/pybis.py b/pybis/src/python/pybis/pybis.py
index a23eb061d50..90ad1561f1a 100644
--- a/pybis/src/python/pybis/pybis.py
+++ b/pybis/src/python/pybis/pybis.py
@@ -2674,6 +2674,30 @@ class Openbis:
         schema = None,
         transformation = None,
     ):
+        """ Creates a new property type.
+
+        code               -- name of the property type
+        internalNameSpace  -- must be set to True if code starts with a $
+        label              -- displayed label of that property
+        description        --
+        dataType           -- must contain any of these values:
+                              INTEGER VARCHAR MULTILINE_VARCHAR
+                              REAL TIMESTAMP BOOLEAN HYPERLINK
+                              XML CONTROLLEDVOCABULARY MATERIAL
+        vocabulary         -- if dataType is CONTROLLEDVOCABULARY, this attribute
+                              must contain the code of the vocabulary object.
+        managedInternally  -- default: False
+        materialType       --
+        schema             --
+        transformation     --
+
+        PropertyTypes can be assigned to
+        - sampleTypes
+        - dataSetTypes
+        - experimentTypes
+        - materialTypes (deprecated)
+        """
+
         return PropertyType(
             openbis_obj=self,
             code=code,
-- 
GitLab