codekingpro/portable-devtools
114k
1"""
2"""
3
4# Created on 2016.08.31
5#
6# Author: Giovanni Cannata
7#
8# Copyright 2014 - 2020 Giovanni Cannata
9#
10# This file is part of ldap3.
11#
12# ldap3 is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Lesser General Public License as published
14# by the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# ldap3 is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Lesser General Public License for more details.
21#
22# You should have received a copy of the GNU Lesser General Public License
23# along with ldap3 in the COPYING and COPYING.LESSER files.
24# If not, see <http://www.gnu.org/licenses/>.
25
26STATUS_INIT = 'Initialized' # The entry object is initialized
27STATUS_VIRTUAL = 'Virtual' # The entry is a new writable entry, still empty
28STATUS_MANDATORY_MISSING = 'Missing mandatory attributes' # The entry has some mandatory attributes missing
29STATUS_READ = 'Read' # The entry has been read
30STATUS_WRITABLE = 'Writable' # The entry has been made writable, still no changes
31STATUS_PENDING_CHANGES = 'Pending changes' # The entry has some changes to commit, mandatory attributes are present
32STATUS_COMMITTED = 'Committed' # The entry changes has been committed
33STATUS_READY_FOR_DELETION = 'Ready for deletion' # The entry is set to be deleted
34STATUS_READY_FOR_MOVING = 'Ready for moving' # The entry is set to be moved in the DIT
35STATUS_READY_FOR_RENAMING = 'Ready for renaming' # The entry is set to be renamed
36STATUS_DELETED = 'Deleted' # The entry has been deleted
37
38STATUSES = [STATUS_INIT,
39 STATUS_VIRTUAL,
40 STATUS_MANDATORY_MISSING,
41 STATUS_READ,
42 STATUS_WRITABLE,
43 STATUS_PENDING_CHANGES,
44 STATUS_COMMITTED,
45 STATUS_READY_FOR_DELETION,
46 STATUS_READY_FOR_MOVING,
47 STATUS_READY_FOR_RENAMING,
48 STATUS_DELETED]
49
50INITIAL_STATUSES = [STATUS_READ, STATUS_WRITABLE, STATUS_VIRTUAL]
51 