Author: jmorliaguet
Date: Tue Oct 18 20:12:15 2005
New Revision: 28407

Modified:
   z3lab/z3ecm/trunk/src/ecm/cpsskins/example1/hello.py
Log:

- options 2 with inline declarations



Modified: z3lab/z3ecm/trunk/src/ecm/cpsskins/example1/hello.py
==============================================================================
--- z3lab/z3ecm/trunk/src/ecm/cpsskins/example1/hello.py        (original)
+++ z3lab/z3ecm/trunk/src/ecm/cpsskins/example1/hello.py        Tue Oct 18 
20:12:15 2005
@@ -17,6 +17,11 @@
 """
 __docformat__ = "reStructuredText"
 
+
+from zope.component import adapts
+from zope.interface import implements
+
+from cpsskins.browser.rendering.interfaces import IContextInfo, IDisplayData
 from cpsskins.elements.interfaces import IPortlet
 from cpsskins.elements.portlet import Portlet
 
@@ -28,10 +33,14 @@
 
     It is not configurable.
     """
+    implements(IHelloPortlet)
 
 class HelloPortletData(object):
     """The portlet returns 'Hello world'.
     """
+    adapts(IHelloPortlet, IContextInfo)
+    implements(IDisplayData)
+
     def __call__(self, **kw):
         return 'Hello world'
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to