Commits

Kai Diefenbach committed ab81a4e

Added interface.

Comments (0)

Files changed (3)

lfc_page/interfaces.py

+# lfc imports
+from lfc.interfaces import IBaseContent
+
+
+class IPage(IBaseContent):
+    """
+    Interface to mark Page content types.
+    """
+    pass

lfc_page/models.py

 from lfc.models import BaseContent
 from lfc.fields.rich_text import RichTextField
 
+# lfc_page imports
+from lfc_page.interfaces import IPage
+
+# zope imports
+from zope.interface import implements
+
 
 class Page(BaseContent):
     """
     text:
         The main text of the Page.
     """
+    implements(IPage)
+
     text = RichTextField(_(u"Text"), blank=True)
 
     def get_searchable_text(self):

lfc_page/test.py

Empty file added.