Author: jmorliaguet Date: Tue Oct 25 14:54:31 2005 New Revision: 28615 Modified: z3lab/z3ecm/trunk/src/ecm/cpsskins/example1/README.txt Log:
- portlets need only be persistent (not implemented yet, still Sci-Fi so far) Modified: z3lab/z3ecm/trunk/src/ecm/cpsskins/example1/README.txt ============================================================================== --- z3lab/z3ecm/trunk/src/ecm/cpsskins/example1/README.txt (original) +++ z3lab/z3ecm/trunk/src/ecm/cpsskins/example1/README.txt Tue Oct 25 14:54:31 2005 @@ -5,7 +5,7 @@ ======================== :Author: Jean-Marc Orliaguet -:Version: $Revision: 2 $ +:Version: $Revision: 3 $ :Copyright: 2005 Nuxeo and Contributors. .. contents:: @@ -58,13 +58,13 @@ Now that you have an interface definition for your portlet you need to create a class that implements the interface. -Make your portlet subclass cpsskins.Portlet. +Make your portlet a persistent object [NB: not implemented yet] - >>> from cpsskins import Portlet + >>> from persistent import Persistent Set the 'title' attribute in the portlet's constructor: - >>> class HelloPortlet(Portlet): + >>> class HelloPortlet(Persistent): ... component.implements(IHelloPortlet) ... ... def __init__(self, title=''): -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins