Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 2.1KB

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