We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56c9e0e commit 5492020Copy full SHA for 5492020
2 files changed
frost_sta_client/__version__.py
@@ -1,5 +1,5 @@
1
__title__ = 'frost_sta_client'
2
-__version__ = '1.1.27'
+__version__ = '1.1.28'
3
__license__ = 'LGPL3'
4
__author__ = 'Katharina Emde'
5
__copyright__ = 'Fraunhofer IOSB'
frost_sta_client/model/ext/entity_type.py
@@ -98,3 +98,11 @@
98
'class': 'frost_sta_client.model.ext.entity_list.EntityList'
99
}
100
101
+
102
+list_for_class = {}
103
+for key, entity_type in EntityTypes.items():
104
+ list_for_class[entity_type["class"]] = entity_type["plural"]
105
106
+def get_list_for_class(clazz):
107
+ clazz_name = clazz.__module__ + "." + clazz.__name__
108
+ return list_for_class[clazz_name]
0 commit comments