Guest User

Untitled

a guest
Nov 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. --- a/src/collective/composition/composition.py
  2. +++ b/src/collective/composition/composition.py
  3. @@ -91,19 +91,37 @@ class Composition(dexterity.Container):
  4. #TODO: Think of a way to register available tiles
  5. # And from here, just ask which tiles are available for this
  6. # context
  7. - available.append({'tile_type': "collective.composition.richtext",
  8. + available.append({'tile_type': "collective.composition.tiles.richtext",
  9. 'icon': '',
  10. 'title': "Rich text tile",
  11. 'description': ("A persistent tile which allows to "
  12. "create content using a WYSIWYG "
  13. "editor")})
  14.  
  15. - available.append({'tile_type': "collective.composition.container",
  16. + available.append({'tile_type': "collective.composition.tiles.basic",
  17. 'icon': '',
  18. 'title': "Container tile",
  19. + 'description': ("A basic tile")})
  20. +
  21. + available.append({'tile_type': "collective.composition.tiles.container",
  22. + 'icon': '',
  23. + 'title': "Container tile",
  24. + 'description': ("A tile wich can contain other "
  25. + "tiles")})
  26. +
  27. + available.append({'tile_type': "collective.composition.tiles.collection",
  28. + 'icon': '',
  29. + 'title': "Collection tile",
  30. 'description': ("A tile wich can contain other "
  31. "tiles")})
  32.  
  33. + available.append({'tile_type': "collective.composition.tiles.container",
  34. + 'icon': '',
  35. + 'title': "Container tile",
  36. + 'description': ("A tile wich can contain other "
  37. + "tiles")})
  38. +
  39. +
  40. return available
Add Comment
Please, Sign In to add comment