Skip to content

Instantly share code, notes, and snippets.

@rbanffy
Created June 26, 2012 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbanffy/2997847 to your computer and use it in GitHub Desktop.
Save rbanffy/2997847 to your computer and use it in GitHub Desktop.
--- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment