Author: jmorliaguet
Date: Wed Oct 19 20:57:18 2005
New Revision: 28444

Modified:
   z3lab/z3ecm/trunk/src/ecm/cpsskins/example1/hello.py
   z3lab/z3ecm/trunk/src/ecm/cpsskins/example2/text.py
   z3lab/z3ecm/trunk/src/ecm/cpsskins/example3/items.py
   z3lab/z3ecm/trunk/src/ecm/cpsskins/example4/actions.py
Log:

- portlet constructors must set the portlet's title



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        Wed Oct 19 
20:57:18 2005
@@ -34,6 +34,9 @@
     """
     implements(IHelloPortlet)
 
+    def __init__(self, title=''):
+        self.title = title
+
 class HelloPortletData(object):
     """The portlet returns 'Hello world'.
     """

Modified: z3lab/z3ecm/trunk/src/ecm/cpsskins/example2/text.py
==============================================================================
--- z3lab/z3ecm/trunk/src/ecm/cpsskins/example2/text.py (original)
+++ z3lab/z3ecm/trunk/src/ecm/cpsskins/example2/text.py Wed Oct 19 20:57:18 2005
@@ -36,7 +36,8 @@
     """
     implements(ITextPortlet)
 
-    def __init__(self, text=''):
+    def __init__(self, title='', text=''):
+        self.title = title
         self.text = text
 
 class TextPortletData(object):

Modified: z3lab/z3ecm/trunk/src/ecm/cpsskins/example3/items.py
==============================================================================
--- z3lab/z3ecm/trunk/src/ecm/cpsskins/example3/items.py        (original)
+++ z3lab/z3ecm/trunk/src/ecm/cpsskins/example3/items.py        Wed Oct 19 
20:57:18 2005
@@ -33,6 +33,9 @@
     """
     implements(IItemsPortlet)
 
+    def __init__(self, title=''):
+        self.title = title
+
 class ItemsPortletData(object):
     """The portlet creates a list of predefined items.
 

Modified: z3lab/z3ecm/trunk/src/ecm/cpsskins/example4/actions.py
==============================================================================
--- z3lab/z3ecm/trunk/src/ecm/cpsskins/example4/actions.py      (original)
+++ z3lab/z3ecm/trunk/src/ecm/cpsskins/example4/actions.py      Wed Oct 19 
20:57:18 2005
@@ -39,7 +39,8 @@
     """
     implements(IActionsPortlet)
 
-    def __init__(self, category='zmi_actions'):
+    def __init__(self, title='', category='zmi_actions'):
+        self.title = title
         self.category = category
 
 class ActionsPortletData(object):
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to