reader
DB utils for getting user related data from the DB.
DBReader
Class encapsulating functions to read user related data from the DB.
Source code in mlte/store/user/underlying/rdbs/reader.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | |
get_group(group_name, session)
staticmethod
Reads the group with the given name using the provided session, and returns a Group and DBGroup object.
Source code in mlte/store/user/underlying/rdbs/reader.py
59 60 61 62 63 64 65 66 67 68 69 70 71 | |
get_method_type(type, session)
staticmethod
Gets the method type DB object corresponding to the given internal type.
Source code in mlte/store/user/underlying/rdbs/reader.py
140 141 142 143 144 145 146 147 148 149 | |
get_permission(permission, session)
staticmethod
Reads a permission from the DB, and returns a Permission and DBPermission objects.
Source code in mlte/store/user/underlying/rdbs/reader.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | |
get_permissions(session)
staticmethod
Reads all permissions in the DB, and returns a list of Permission and DBPermission objects.
Source code in mlte/store/user/underlying/rdbs/reader.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
get_role_type(type, session)
staticmethod
Gets the role type DB object corresponding to the given internal type.
Source code in mlte/store/user/underlying/rdbs/reader.py
129 130 131 132 133 134 135 136 137 138 | |
get_user(username, session)
staticmethod
Reads the user with the given user using the provided session, and returns a User and DBUser object.
Source code in mlte/store/user/underlying/rdbs/reader.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |