labstep 3.25.0__tar.gz → 3.25.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. {labstep-3.25.0 → labstep-3.25.2}/PKG-INFO +1 -1
  2. labstep-3.25.2/labstep/constants/version.py +1 -0
  3. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentDataField/repository.py +3 -0
  4. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/notification/model.py +6 -1
  5. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/notification/repository.py +4 -4
  6. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/user/model.py +7 -5
  7. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/workspaceRole/model.py +20 -0
  8. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/workspaceRolePermission/model.py +10 -0
  9. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entity/repository.py +4 -2
  10. {labstep-3.25.0 → labstep-3.25.2}/labstep.egg-info/PKG-INFO +1 -1
  11. labstep-3.25.0/labstep/constants/version.py +0 -1
  12. {labstep-3.25.0 → labstep-3.25.2}/README.rst +0 -0
  13. {labstep-3.25.0 → labstep-3.25.2}/labstep/__init__.py +0 -0
  14. {labstep-3.25.0 → labstep-3.25.2}/labstep/config/export.py +0 -0
  15. {labstep-3.25.0 → labstep-3.25.2}/labstep/constants/__init__.py +0 -0
  16. {labstep-3.25.0 → labstep-3.25.2}/labstep/constants/unspecified.py +0 -0
  17. {labstep-3.25.0 → labstep-3.25.2}/labstep/converter/__init__.py +0 -0
  18. {labstep-3.25.0 → labstep-3.25.2}/labstep/converter/htmlToProseMirror.py +0 -0
  19. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/apiKey/model.py +0 -0
  20. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/apiKey/repository.py +0 -0
  21. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/autoshare/model.py +0 -0
  22. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/autoshare/repository.py +0 -0
  23. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/chemical/model.py +0 -0
  24. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/chemical/repository.py +0 -0
  25. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/chemicalReaction/model.py +0 -0
  26. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/chemicalReaction/repository.py +0 -0
  27. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/collaborator/model.py +0 -0
  28. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/collaborator/repository.py +0 -0
  29. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/collection/model.py +0 -0
  30. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/collection/repository.py +0 -0
  31. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/comment/model.py +0 -0
  32. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/comment/repository.py +0 -0
  33. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/device/model.py +0 -0
  34. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/device/repository.py +0 -0
  35. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/deviceBooking/model.py +0 -0
  36. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/deviceBooking/repository.py +0 -0
  37. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/deviceCategory/model.py +0 -0
  38. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/deviceCategory/repository.py +0 -0
  39. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/deviceData/model.py +0 -0
  40. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/deviceData/repository.py +0 -0
  41. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/deviceTemplate/model.py +0 -0
  42. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/deviceTemplate/repository.py +0 -0
  43. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/entityImport/model.py +0 -0
  44. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/entityImport/repository.py +0 -0
  45. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experiment/model.py +0 -0
  46. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experiment/repository.py +0 -0
  47. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentCondition/model.py +0 -0
  48. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentCondition/repository.py +0 -0
  49. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentDataField/model.py +0 -0
  50. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentInventoryField/model.py +0 -0
  51. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentInventoryField/repository.py +0 -0
  52. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentLink/model.py +0 -0
  53. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentLink/repository.py +0 -0
  54. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentProtocol/model.py +0 -0
  55. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentProtocol/repository.py +0 -0
  56. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentSignature/model.py +0 -0
  57. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentSignature/repository.py +0 -0
  58. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentSignatureRequest/model.py +0 -0
  59. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentSignatureRequest/repository.py +0 -0
  60. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentStep/model.py +0 -0
  61. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentStep/repository.py +0 -0
  62. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentTable/model.py +0 -0
  63. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentTable/repository.py +0 -0
  64. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentTemplate/model.py +0 -0
  65. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentTimer/model.py +0 -0
  66. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/experimentTimer/repository.py +0 -0
  67. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/export/model.py +0 -0
  68. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/export/repository.py +0 -0
  69. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/file/model.py +0 -0
  70. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/file/repository.py +0 -0
  71. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/invitation/model.py +0 -0
  72. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/invitation/repository.py +0 -0
  73. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/jupyterInstance/model.py +0 -0
  74. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/jupyterInstance/repository.py +0 -0
  75. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/jupyterNotebook/model.py +0 -0
  76. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/jupyterNotebook/repository.py +0 -0
  77. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/jupyterSchedule/model.py +0 -0
  78. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/jupyterSchedule/repository.py +0 -0
  79. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/metadata/model.py +0 -0
  80. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/metadata/repository.py +0 -0
  81. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/molecule/model.py +0 -0
  82. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/molecule/repository.py +0 -0
  83. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/notificationAlert/model.py +0 -0
  84. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/notificationAlert/repository.py +0 -0
  85. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/orderRequest/model.py +0 -0
  86. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/orderRequest/repository.py +0 -0
  87. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/organization/model.py +0 -0
  88. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/organization/repository.py +0 -0
  89. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/organizationUser/model.py +0 -0
  90. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/organizationUser/repository.py +0 -0
  91. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/permission/model.py +0 -0
  92. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/permission/repository.py +0 -0
  93. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocol/model.py +0 -0
  94. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocol/repository.py +0 -0
  95. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolCondition/model.py +0 -0
  96. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolCondition/repository.py +0 -0
  97. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolDataField/model.py +0 -0
  98. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolDataField/repository.py +0 -0
  99. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolInventoryField/model.py +0 -0
  100. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolInventoryField/repository.py +0 -0
  101. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolStep/model.py +0 -0
  102. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolStep/repository.py +0 -0
  103. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolTable/model.py +0 -0
  104. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolTable/repository.py +0 -0
  105. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolTimer/model.py +0 -0
  106. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolTimer/repository.py +0 -0
  107. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolVersion/model.py +0 -0
  108. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/protocolVersion/repository.py +0 -0
  109. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/purchaseOrder/model.py +0 -0
  110. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/purchaseOrder/repository.py +0 -0
  111. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/resource/model.py +0 -0
  112. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/resource/repository.py +0 -0
  113. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/resourceCategory/model.py +0 -0
  114. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/resourceCategory/repository.py +0 -0
  115. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/resourceItem/model.py +0 -0
  116. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/resourceItem/repository.py +0 -0
  117. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/resourceLocation/model.py +0 -0
  118. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/resourceLocation/repository.py +0 -0
  119. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/resourceTemplate/model.py +0 -0
  120. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/resourceTemplate/repository.py +0 -0
  121. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/sequence/model.py +0 -0
  122. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/sequence/repository.py +0 -0
  123. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/sharelink/model.py +0 -0
  124. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/sharelink/repository.py +0 -0
  125. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/tag/model.py +0 -0
  126. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/tag/repository.py +0 -0
  127. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/user/facade.py +0 -0
  128. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/user/repository.py +0 -0
  129. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/workspace/model.py +0 -0
  130. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/workspace/repository.py +0 -0
  131. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/workspaceMember/model.py +0 -0
  132. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/workspaceMember/repository.py +0 -0
  133. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/workspaceRole/repository.py +0 -0
  134. {labstep-3.25.0 → labstep-3.25.2}/labstep/entities/workspaceRolePermission/repository.py +0 -0
  135. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entity/model.py +0 -0
  136. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entityList/model.py +0 -0
  137. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entityPrimary/model.py +0 -0
  138. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entityWithAssign/model.py +0 -0
  139. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entityWithComments/model.py +0 -0
  140. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entityWithMetadata/model.py +0 -0
  141. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entityWithMetadata/repository.py +0 -0
  142. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entityWithSharing/model.py +0 -0
  143. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entityWithTags/model.py +0 -0
  144. {labstep-3.25.0 → labstep-3.25.2}/labstep/generic/entityWithTags/repository.py +0 -0
  145. {labstep-3.25.0 → labstep-3.25.2}/labstep/service/__init__.py +0 -0
  146. {labstep-3.25.0 → labstep-3.25.2}/labstep/service/config.py +0 -0
  147. {labstep-3.25.0 → labstep-3.25.2}/labstep/service/helpers.py +0 -0
  148. {labstep-3.25.0 → labstep-3.25.2}/labstep/service/htmlExport.py +0 -0
  149. {labstep-3.25.0 → labstep-3.25.2}/labstep/service/htmlToPDF.py +0 -0
  150. {labstep-3.25.0 → labstep-3.25.2}/labstep/service/htmlToProseMirror.py +0 -0
  151. {labstep-3.25.0 → labstep-3.25.2}/labstep/service/jupyter.py +0 -0
  152. {labstep-3.25.0 → labstep-3.25.2}/labstep/service/ping.py +0 -0
  153. {labstep-3.25.0 → labstep-3.25.2}/labstep/service/request.py +0 -0
  154. {labstep-3.25.0 → labstep-3.25.2}/labstep.egg-info/SOURCES.txt +0 -0
  155. {labstep-3.25.0 → labstep-3.25.2}/labstep.egg-info/dependency_links.txt +0 -0
  156. {labstep-3.25.0 → labstep-3.25.2}/labstep.egg-info/not-zip-safe +0 -0
  157. {labstep-3.25.0 → labstep-3.25.2}/labstep.egg-info/requires.txt +0 -0
  158. {labstep-3.25.0 → labstep-3.25.2}/labstep.egg-info/top_level.txt +0 -0
  159. {labstep-3.25.0 → labstep-3.25.2}/setup.cfg +0 -0
  160. {labstep-3.25.0 → labstep-3.25.2}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: labstep
3
- Version: 3.25.0
3
+ Version: 3.25.2
4
4
  Summary: Python SDK for working with the Labstep API
5
5
  Home-page: http://github.com/Labstep/labstepPy
6
6
  Author: Labstep
@@ -0,0 +1 @@
1
+ VERSION = "3.25.2"
@@ -142,6 +142,9 @@ def getDataFieldValue(dataField):
142
142
 
143
143
  keys = [k for k, v in dataField.options['values'].items() if v]
144
144
 
145
+ if keys == []:
146
+ return None
147
+
145
148
  if dataField.options['is_allow_multiple']:
146
149
  return keys
147
150
 
@@ -7,5 +7,10 @@ from labstep.constants import UNSPECIFIED
7
7
  from labstep.service.helpers import getTime
8
8
 
9
9
  class Notification(Entity):
10
+ """
11
+ Represents a Notification entity on Labstep.
12
+ """
13
+
10
14
  __entityName__='notification'
11
- __unSearchable__=True
15
+ __unSearchable__=True
16
+ __noDelete__=True
@@ -4,17 +4,17 @@ from labstep.constants import UNSPECIFIED
4
4
 
5
5
 
6
6
  def getNotification(user,
7
- guid,):
8
- return getEntity(user, Notification, guid=guid)
7
+ id,):
8
+ return getEntity(user, Notification, id=id)
9
9
 
10
10
 
11
11
  def getNotifications(user,
12
12
  count=UNSPECIFIED,
13
- type=UNSPECIFIED,
13
+ notification_type=UNSPECIFIED,
14
14
  extraParams={},):
15
15
 
16
16
  params = {
17
- 'type': type,
17
+ 'type': notification_type,
18
18
  **extraParams,
19
19
  }
20
20
  return getEntities(user, Notification, count, params)
@@ -1265,6 +1265,8 @@ class User(Entity):
1265
1265
  The number of API keys to retrieve.
1266
1266
  search_query (str)
1267
1267
  Search for API keys with this 'name'.
1268
+ api_key (str)
1269
+ Search for API keys with this 'api_key'.
1268
1270
 
1269
1271
  Returns
1270
1272
  -------
@@ -1275,7 +1277,7 @@ class User(Entity):
1275
1277
  -------
1276
1278
  ::
1277
1279
 
1278
- entity = user.getAPIKey(search_query='properties')
1280
+ entity = user.getAPIKeys(api_key='111f321dafd0d0sa')
1279
1281
  """
1280
1282
  import labstep.entities.apiKey.repository as ApiKeyRepository
1281
1283
 
@@ -1287,7 +1289,7 @@ class User(Entity):
1287
1289
  extraParams=extraParams,
1288
1290
  )
1289
1291
 
1290
- def getNotifications(self, count=UNSPECIFIED, type=UNSPECIFIED):
1292
+ def getNotifications(self, count=UNSPECIFIED, notification_type=UNSPECIFIED):
1291
1293
  """
1292
1294
  Retrieve a list of the User's notifications which can be filtered using the parameters
1293
1295
 
@@ -1314,9 +1316,9 @@ class User(Entity):
1314
1316
  """
1315
1317
  import labstep.entities.notification.repository as notificationRepository
1316
1318
 
1317
- return notificationRepository.getNotifications(self, count=count, type=type)
1319
+ return notificationRepository.getNotifications(self, count=count, notification_type=notification_type)
1318
1320
 
1319
- def getNotification(self, guid):
1321
+ def getNotification(self, id):
1320
1322
  """
1321
1323
  Retrieve a Notification entity in Labstep.
1322
1324
 
@@ -1338,7 +1340,7 @@ class User(Entity):
1338
1340
  """
1339
1341
  import labstep.entities.notification.repository as notificationRepository
1340
1342
 
1341
- return notificationRepository.getNotification(self, guid=guid)
1343
+ return notificationRepository.getNotification(self, id=id)
1342
1344
 
1343
1345
  def newPurchaseOrder(self ,name=UNSPECIFIED, status=UNSPECIFIED, currency='USD', extraParams={}):
1344
1346
  """
@@ -53,6 +53,14 @@ class WorkspaceRole(Entity):
53
53
  Returns
54
54
  -------
55
55
  None
56
+
57
+ Example
58
+ -------
59
+ ::
60
+
61
+ my_org = user.getOrganization()
62
+ workspace_role = my_org.getWorkspaceRole(10000)
63
+ workspace_role.delete()
56
64
  """
57
65
  import labstep.entities.workspaceRole.repository as WorkspaceRoleRepository
58
66
 
@@ -83,6 +91,7 @@ class WorkspaceRole(Entity):
83
91
  Example
84
92
  -------
85
93
  ::
94
+
86
95
  from labstep.entities.experiment.model import Experiment
87
96
 
88
97
  my_org = user.getOrganization()
@@ -97,11 +106,22 @@ class WorkspaceRole(Entity):
97
106
  """
98
107
  Return a list of the permissions that have been granted to this Workspace Role.
99
108
 
109
+ Parameters
110
+ -------
111
+ None
112
+
100
113
  Returns
101
114
  -------
102
115
  List[:class:`~labstep.entities.workspaceRolePermission.model.WorkspaceRolePermission`]
103
116
  An object representing the permission granted to the Workspace Role.
104
117
 
118
+ Example
119
+ -------
120
+ ::
121
+
122
+ my_org = user.getOrganization()
123
+ workspace_role = my_org.getWorkspaceRole('Lab Manager')
124
+ permissions = workspace_role.getPermissions()
105
125
 
106
126
  """
107
127
  from labstep.entities.workspaceRolePermission.model import WorkspaceRolePermission
@@ -22,6 +22,16 @@ class WorkspaceRolePermission(Entity):
22
22
  Returns
23
23
  -------
24
24
  None
25
+
26
+ Example
27
+ -------
28
+ ::
29
+
30
+ my_org = user.getOrganization()
31
+ workspace_role = my_org.getWorkspaceRole('Lab Manager')
32
+ permissions = workspace_role.getPermissions()
33
+ permissions[0].revoke()
34
+
25
35
  """
26
36
  import labstep.entities.workspaceRolePermission.repository as WorkspaceRolePermission
27
37
 
@@ -43,8 +43,10 @@ def getEntity(user, entityClass, id, isDeleted="both", useGuid=False, extraParam
43
43
  identifier = 'guid' if getattr(
44
44
  entityClass, "__hasGuid__", None) or useGuid else 'id'
45
45
 
46
- params = {"is_deleted": isDeleted,
47
- "get_single": 1, identifier: id, **extraParams}
46
+ params = {"get_single": 1, identifier: id, **extraParams}
47
+
48
+ if not getattr(entityClass, "__noDelete__", None):
49
+ params['is_deleted']=isDeleted
48
50
 
49
51
  headers = getHeaders(user=user)
50
52
  url = url_join(configService.getHost(), "/api/generic/",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: labstep
3
- Version: 3.25.0
3
+ Version: 3.25.2
4
4
  Summary: Python SDK for working with the Labstep API
5
5
  Home-page: http://github.com/Labstep/labstepPy
6
6
  Author: Labstep
@@ -1 +0,0 @@
1
- VERSION = "3.25.0"
File without changes
File without changes
File without changes
File without changes