[Checkins] SVN: z3c.viewtemplate/trunk/src/z3c/viewtemplate/ Specific interface for the TemplatedContentProvider

Jürgen Kartnaller juergen at kartnaller.at
Tue Sep 19 06:12:54 EDT 2006


Log message for revision 70224:
  Specific interface for the TemplatedContentProvider

Changed:
  U   z3c.viewtemplate/trunk/src/z3c/viewtemplate/baseview.py
  A   z3c.viewtemplate/trunk/src/z3c/viewtemplate/interfaces.py

-=-
Modified: z3c.viewtemplate/trunk/src/z3c/viewtemplate/baseview.py
===================================================================
--- z3c.viewtemplate/trunk/src/z3c/viewtemplate/baseview.py	2006-09-19 09:04:01 UTC (rev 70223)
+++ z3c.viewtemplate/trunk/src/z3c/viewtemplate/baseview.py	2006-09-19 10:12:53 UTC (rev 70224)
@@ -19,13 +19,14 @@
 from zope import interface
 from zope import component
 
-from zope.contentprovider.interfaces import IContentProvider
 from zope.pagetemplate.interfaces import IPageTemplate
 from zope.publisher.browser import BrowserView
 
+from z3c.viewtemplate.interfaces import ITemplatedContentProvider
 
+
 class TemplatedContentProvider(object):
-    interface.implements(IContentProvider)
+    interface.implements(ITemplatedContentProvider)
 
     template = None
 

Added: z3c.viewtemplate/trunk/src/z3c/viewtemplate/interfaces.py
===================================================================
--- z3c.viewtemplate/trunk/src/z3c/viewtemplate/interfaces.py	2006-09-19 09:04:01 UTC (rev 70223)
+++ z3c.viewtemplate/trunk/src/z3c/viewtemplate/interfaces.py	2006-09-19 10:12:53 UTC (rev 70224)
@@ -0,0 +1,25 @@
+##############################################################################
+#
+# Copyright (c) 2005 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+$Id$
+"""
+__docformat__ = "reStructuredText"
+
+from zope.contentprovider.interfaces import IContentProvider
+
+
+class ITemplatedContentProvider(IContentProvider):
+    """Content providers implementing this interface use templates to generate
+    their content.
+    """


Property changes on: z3c.viewtemplate/trunk/src/z3c/viewtemplate/interfaces.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native



More information about the Checkins mailing list