Created
June 26, 2012 18:41
-
-
Save rbanffy/2997847 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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