From a5aba69cb356b1c1aa7bfe97e64e448869eb2f61 Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Thu, 22 Aug 2019 14:40:55 +0200
Subject: [PATCH] altered space, project, experiment and sample entities to
 lowercase keys

---
 pybis/src/python/pybis/definitions.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pybis/src/python/pybis/definitions.py b/pybis/src/python/pybis/definitions.py
index 310bfc0da44..475af660875 100644
--- a/pybis/src/python/pybis/definitions.py
+++ b/pybis/src/python/pybis/definitions.py
@@ -8,7 +8,7 @@ def openbis_definitions(entity):
     (Entity-Name in camel-case, starting with lowercase letter, with Id added)
     """
     entities = {
-        "Space": {
+        "space": {
             "attrs_new": "code description".split(),
             "attrs_up": "description".split(),
             "attrs": "code permId description registrator registrationDate modifier modificationDate".split(),
@@ -19,7 +19,7 @@ def openbis_definitions(entity):
             "delete": { "@type": "as.dto.space.delete.SpaceDeletionOptions"},
             "fetch":  { "@type": "as.dto.space.fetchoptions.SpaceFetchOptions"},
         },
-        "Project": {
+        "project": {
             "attrs_new": "code description space attachments".split(),
             "attrs_up": "description space attachments".split(),
             "attrs": "code description permId identifier space leader registrator registrationDate modifier modificationDate attachments".split(),
@@ -28,7 +28,7 @@ def openbis_definitions(entity):
             "create": { "@type": "as.dto.project.create.ProjectCreation"},
             "update": { "@type": "as.dto.project.update.ProjectUpdate"},
         },
-        "Experiment": {
+        "experiment": {
             "attrs_new": "code type project tags attachments".split(),
             "attrs_up": "project tags attachments".split(),
             "attrs": "code permId identifier type project tags registrator registrationDate modifier modificationDate attachments".split(),
@@ -37,7 +37,7 @@ def openbis_definitions(entity):
             "create": { "@type": "as.dto.experiment.create.ExperimentCreation"},
             "update": { "@type": "as.dto.experiment.update.ExperimentUpdate"},
         },
-        "Sample": {
+        "sample": {
             "attrs_new": "code type project parents children container components space experiment tags attachments".split(),
             "attrs_up": "project parents children container components space experiment tags attachments".split(),
             "attrs": "code permId identifier type project parents children components space experiment tags registrator registrationDate modifier modificationDate attachments container".split(),
-- 
GitLab