Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
added schema for texttile
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Mar 26, 2012
1 parent 6e78ef0 commit 5fc9751
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions plone/app/texttile/configure.zcml
Expand Up @@ -27,6 +27,7 @@
description="A tile which adds text"
add_permission="zope.Public"
class=".tile.TextTile"
schema=".tile.ITextTile"
template="tile.pt"
for="*"
permission="zope2.View"
Expand Down
11 changes: 11 additions & 0 deletions plone/app/texttile/tile.py
@@ -1,5 +1,16 @@
from zope.schema import Text
from zope.interface import Interface
from zope.i18nmessageid import MessageFactory
from plone.tiles.tile import PersistentTile


_ = MessageFactory('plone')


class ITextTile(Interface):
text = Text(title=_("Tile text"))


class TextTile(PersistentTile):
""" A text tile """

0 comments on commit 5fc9751

Please sign in to comment.