constants.py 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. """
  2. -----------------------------------------------------------------------------------------
  3. INTERSEL - 4 cité d'Hauteville - 75010 PARIS
  4. RCS PARIS 488 379 660 - NAF 721Z
  5. File : core/constants.py
  6. Object : Constants, enums, globals for the MCP server
  7. -----------------------------------------------------------------------------------------
  8. Modifications :
  9. - 2026/01/20 - Damien Lugagne-Delpon - V1.0.0- Creation
  10. -----------------------------------------------------------------------------------------
  11. @copyright : Intersel 2026
  12. @author : Damien Lugagne-Delpon - damien.lugagne-delpon@livinweb.fr
  13. @version : 1.0.0 (to be updated to the current_version of the developed software if file is touched)
  14. -----------------------------------------------------------------------------------------
  15. """
  16. from enum import Enum
  17. class ModxType(str, Enum):
  18. """Enumeration of MODX types."""
  19. RESOURCE = "resource"
  20. TEMPLATE = "template"
  21. TV = "tv"
  22. CHUNK = "chunk"
  23. class actionType(str, Enum):
  24. """Enumeration of action types."""
  25. UPDATE = "update"
  26. READ = "read"