From b6ab24cf82ea76db045d54f3274127af4570e3b3 Mon Sep 17 00:00:00 2001
From: Sinisa Veseli <sveseli@aps.anl.gov>
Date: Mon, 13 Apr 2015 13:12:50 +0000
Subject: [PATCH] added role type and user system role db entities and
 handlers, as well as related objects

---
 src/python/dm/common/objects/roleType.py       | 11 +++++++++++
 src/python/dm/common/objects/userSystemRole.py | 11 +++++++++++
 2 files changed, 22 insertions(+)
 create mode 100755 src/python/dm/common/objects/roleType.py
 create mode 100755 src/python/dm/common/objects/userSystemRole.py

diff --git a/src/python/dm/common/objects/roleType.py b/src/python/dm/common/objects/roleType.py
new file mode 100755
index 00000000..aa0bc67c
--- /dev/null
+++ b/src/python/dm/common/objects/roleType.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+from dmObject import DmObject
+
+class RoleType(DmObject):
+
+    DEFAULT_KEY_LIST = [ 'id', 'name', 'description' ]
+
+    def __init__(self, dict):
+        DmObject.__init__(self, dict)
+
diff --git a/src/python/dm/common/objects/userSystemRole.py b/src/python/dm/common/objects/userSystemRole.py
new file mode 100755
index 00000000..270fc74f
--- /dev/null
+++ b/src/python/dm/common/objects/userSystemRole.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+from dmObject import DmObject
+
+class UserSystemRole(DmObject):
+
+    DEFAULT_KEY_LIST = [ 'user_id', 'role_type_id' ]
+
+    def __init__(self, dict):
+        DmObject.__init__(self, dict)
+
-- 
GitLab