No Description
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.

classtypes.py 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # -*- coding: utf-8 -*-
  2. """
  3. representation of the classTypes (sic…)
  4. """
  5. class EmNature(object):
  6. PARENT = 'parent'
  7. TRANSLATION = 'translation'
  8. IDENTITY = 'identity'
  9. class EmClassType(object):
  10. entity = {
  11. 'name' : 'entity',
  12. 'hierarchy' : [
  13. {
  14. 'nature' : EmNature.PARENT,
  15. 'attach' : 'type',
  16. 'editable' : True,
  17. },
  18. {
  19. 'nature' : EmNature.TRANSLATION,
  20. 'attach' : 'type',
  21. 'editable' : True,
  22. },
  23. ],
  24. }
  25. entry = {
  26. 'name' : 'entry',
  27. 'hierarchy' : [
  28. {
  29. 'nature' : EmNature.PARENT,
  30. 'attach' : 'type',
  31. 'editable' : True,
  32. },
  33. {
  34. 'nature' : EmNature.TRANSLATION,
  35. 'attach' : 'type',
  36. 'editable' : True,
  37. },
  38. ],
  39. }
  40. person = {
  41. 'name' : 'person',
  42. 'hierarchy' : [
  43. {
  44. 'nature' : EmNature.IDENTITY,
  45. 'attach' : 'classtype',
  46. 'editable' : False,
  47. },
  48. ],
  49. }