Author: jmorliaguet
Date: Tue Oct 25 18:27:49 2005
New Revision: 28630

Modified:
   z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/__init__.py
   z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/__init__.py
   z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/__init__.py
   z3lab/cpsskins/branches/jmo-perspectives/portlets/dummy/__init__.py
   z3lab/cpsskins/branches/jmo-perspectives/portlets/image/__init__.py
   z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/__init__.py
Log:

- portlets only need to subclass Persistent (and in theory they don't even
  need to)



Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/__init__.py
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/__init__.py       
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/__init__.py       
Tue Oct 25 18:27:49 2005
@@ -17,15 +17,15 @@
 """
 __docformat__ = "reStructuredText"
 
-
+from persistent import Persistent
 from zope.app.publisher.browser.menu import getMenu
 from zope.component import adapts
-from zope.interface import implements
 from zope.component.exceptions import ComponentLookupError
+from zope.interface import implements
 from zope.schema import TextLine
 from zope.i18nmessageid import MessageFactory
 
-from cpsskins import Portlet, getContexts
+from cpsskins import getContexts
 from cpsskins.interfaces import IPortlet
 from cpsskins.model import Items, Item
 
@@ -38,7 +38,7 @@
         title=_("Category"),
         required=True)
 
-class ActionsPortlet(Portlet):
+class ActionsPortlet(Persistent):
     """Actions portlet
     """
     implements(IActionsPortlet)

Modified: 
z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/__init__.py
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/__init__.py   
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/__init__.py   
Tue Oct 25 18:27:49 2005
@@ -17,9 +17,10 @@
 """
 __docformat__ = "reStructuredText"
 
+from persistent import Persistent
+from zope.app.traversing.browser.interfaces import IAbsoluteURL
 from zope.component import adapts, getMultiAdapter
 from zope.interface import implements
-from zope.app.traversing.browser.interfaces import IAbsoluteURL
 from zope.i18nmessageid import MessageFactory
 
 from cpsskins import Portlet

Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/__init__.py
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/__init__.py        
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/__init__.py        
Tue Oct 25 18:27:49 2005
@@ -17,6 +17,7 @@
 """
 __docformat__ = "reStructuredText"
 
+from persistent import Persistent
 from zope.app.container.contained import contained
 from zope.app.zptpage.zptpage import ZPTPage
 from zope.app.dtmlpage.dtmlpage import DTMLPage
@@ -28,7 +29,7 @@
 from zope.schema import Choice, Text
 from zope.schema.vocabulary import SimpleVocabulary
 
-from cpsskins import Portlet, getContexts
+from cpsskins import getContexts
 from cpsskins.interfaces import IPortlet
 
 _ = MessageFactory("cpsskins")
@@ -58,7 +59,7 @@
         required=True)
 
 
-class CustomPortlet(Portlet):
+class CustomPortlet(Persistent):
     """Custom portlet
     """
     implements(ICustomPortlet)

Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/dummy/__init__.py
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/dummy/__init__.py 
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/dummy/__init__.py Tue Oct 
25 18:27:49 2005
@@ -17,12 +17,12 @@
 """
 __docformat__ = "reStructuredText"
 
+from persistent import Persistent
 from zope.component import adapts
 from zope.interface import implements
 from zope.schema import Text
 from zope.i18nmessageid import MessageFactory
 
-from cpsskins import Portlet
 from cpsskins.interfaces import IPortlet
 
 _ = MessageFactory("cpsskins")
@@ -34,7 +34,7 @@
         title=_("Dummy text"),
         required=True)
 
-class DummyPortlet(Portlet):
+class DummyPortlet(Persistent):
     """Dummy portlet
     """
     implements(IDummyPortlet)

Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/image/__init__.py
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/image/__init__.py 
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/image/__init__.py Tue Oct 
25 18:27:49 2005
@@ -25,7 +25,6 @@
 from zope.schema import TextLine, Bytes, BytesLine
 from zope.i18nmessageid import MessageFactory
 
-from cpsskins import Portlet
 from cpsskins.interfaces import IPortlet
 from cpsskins.model import Image
 
@@ -54,7 +53,7 @@
         readonly=True,
         )
 
-class ImagePortlet(Portlet, ImageFile):
+class ImagePortlet(ImageFile):
     """Image portlet
     """
     implements(IImagePortlet)

Modified: 
z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/__init__.py
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/__init__.py     
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/__init__.py     
Tue Oct 25 18:27:49 2005
@@ -17,6 +17,7 @@
 """
 __docformat__ = "reStructuredText"
 
+from persistent import Persistent
 from zope.app import zapi
 from zope.app.publisher.browser import applySkin
 from zope.component import adapts
@@ -26,7 +27,6 @@
 from zope.publisher.interfaces.browser import IBrowserRequest
 
 from cpsskins import getContexts
-from cpsskins.elements.portlet import Portlet
 from cpsskins.interfaces import IPortlet
 
 _ = MessageFactory("cpsskins")
@@ -40,7 +40,7 @@
 class IMacroSlotPortlet(IPortlet):
     """Interface for the macro slot portlet"""
 
-class MacroSlotPortlet(Portlet):
+class MacroSlotPortlet(Persistent):
     """Macro slot portlet
     """
     implements(IMacroSlotPortlet)
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to