Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- a/src/collective/composition/composition.py
- +++ b/src/collective/composition/composition.py
- @@ -91,19 +91,37 @@ class Composition(dexterity.Container):
- #TODO: Think of a way to register available tiles
- # And from here, just ask which tiles are available for this
- # context
- - available.append({'tile_type': "collective.composition.richtext",
- + available.append({'tile_type': "collective.composition.tiles.richtext",
- 'icon': '',
- 'title': "Rich text tile",
- 'description': ("A persistent tile which allows to "
- "create content using a WYSIWYG "
- "editor")})
- - available.append({'tile_type': "collective.composition.container",
- + available.append({'tile_type': "collective.composition.tiles.basic",
- 'icon': '',
- 'title': "Container tile",
- + 'description': ("A basic tile")})
- +
- + available.append({'tile_type': "collective.composition.tiles.container",
- + 'icon': '',
- + 'title': "Container tile",
- + 'description': ("A tile wich can contain other "
- + "tiles")})
- +
- + available.append({'tile_type': "collective.composition.tiles.collection",
- + 'icon': '',
- + 'title': "Collection tile",
- 'description': ("A tile wich can contain other "
- "tiles")})
- + available.append({'tile_type': "collective.composition.tiles.container",
- + 'icon': '',
- + 'title': "Container tile",
- + 'description': ("A tile wich can contain other "
- + "tiles")})
- +
- +
- return available
Add Comment
Please, Sign In to add comment