Author: jmorliaguet
Date: Sat Oct 22 14:40:01 2005
New Revision: 28537

Modified:
   
z3lab/cpsskins/branches/jmo-perspectives/configuration/portlets/metadirectives.py
   z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/configure.zcml
   z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/configure.zcml
   z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/configure.zcml
   z3lab/cpsskins/branches/jmo-perspectives/portlets/dummy/configure.zcml
   z3lab/cpsskins/branches/jmo-perspectives/portlets/image/configure.zcml
   z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/configure.zcml
Log:

- switched to dotted names (at least 1 dot) for portlet names



Modified: 
z3lab/cpsskins/branches/jmo-perspectives/configuration/portlets/metadirectives.py
==============================================================================
--- 
z3lab/cpsskins/branches/jmo-perspectives/configuration/portlets/metadirectives.py
   (original)
+++ 
z3lab/cpsskins/branches/jmo-perspectives/configuration/portlets/metadirectives.py
   Sat Oct 22 14:40:01 2005
@@ -20,17 +20,17 @@
 from zope.interface import Interface
 from zope.i18nmessageid import MessageFactory
 from zope.configuration.fields import GlobalObject, GlobalInterface, Path
-from zope.schema import TextLine
+from zope.schema import TextLine, DottedName
 
 _ = MessageFactory("cpsskins")
 
 class IPortletDirective(Interface):
 
-    name = TextLine(
+    name = DottedName(
         title=_("Name"),
-        description=_("The portlet's short name"),
+        description=_("The portlet's name writted as a dotted name."),
         required=False,
-        default=u'',
+        min_dots=1,
         )
 
     title = TextLine(

Modified: 
z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/configure.zcml
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/configure.zcml    
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/configure.zcml    
Sat Oct 22 14:40:01 2005
@@ -8,7 +8,7 @@
   <!-- Actions portlet -->
 
   <portlet
-      name="actions"
+      name="cpsskins.actions"
       title="Actions portlet"
       description="A portlet that displays actions"
       factory=".ActionsPortlet"

Modified: 
z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/configure.zcml
==============================================================================
--- 
z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/configure.zcml    
    (original)
+++ 
z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/configure.zcml    
    Sat Oct 22 14:40:01 2005
@@ -8,7 +8,7 @@
   <!-- Breadcumbs portlet -->
 
   <portlet
-      name="breadcrumbs"
+      name="cpsskins.breadcrumbs"
       title="Breadcrumbs portlet"
       description="A portlet that displays a navigation trail"
       factory=".BreadcrumbsPortlet"
@@ -16,12 +16,10 @@
       icon="breadcrumbs-icon.png"
   />
 
-
   <zope:adapter
       factory=".BreadcrumbsPortletData"
   />
 
-
   <!-- The portlet's presentation -->
 
   <presentation

Modified: 
z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/configure.zcml
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/configure.zcml     
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/configure.zcml     
Sat Oct 22 14:40:01 2005
@@ -8,7 +8,7 @@
   <!-- Custom portlet -->
 
   <portlet
-      name="custom"
+      name="cpsskins.custom"
       title="Custom portlet"
       description="A portlet that displays a python, ZPT, DTML page"
       factory=".CustomPortlet"
@@ -16,12 +16,10 @@
       icon="custom-icon.png"
   />
 
-
   <zope:adapter
       factory=".CustomPortletData"
   />
 
-
   <!-- The portlet's presentation -->
 
   <presentation

Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/dummy/configure.zcml
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/dummy/configure.zcml      
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/dummy/configure.zcml      
Sat Oct 22 14:40:01 2005
@@ -8,21 +8,18 @@
   <!-- Dummy portlet -->
 
   <portlet
-      name="dummy"
+      name="cpsskins.dummy"
       title="Dummy portlet"
       description="A portlet for testing"
       factory=".DummyPortlet"
       schema=".IDummyPortlet"
-      icon="dummy-icon.png">
-
-  </portlet>
-
+      icon="dummy-icon.png"
+  />
 
   <zope:adapter
       factory=".DummyPortletData"
   />
 
-
   <!-- The portlet's presentation -->
 
   <presentation

Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/image/configure.zcml
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/image/configure.zcml      
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/image/configure.zcml      
Sat Oct 22 14:40:01 2005
@@ -8,7 +8,7 @@
   <!-- Image portlet -->
 
   <portlet
-      name="image"
+      name="cpsskins.image"
       title="Image portlet"
       description="A portlet that displays an image"
       factory=".ImagePortlet"
@@ -20,7 +20,6 @@
       factory=".ImagePortletData"
   />
 
-
   <!-- The portlet's presentation -->
 
   <presentation

Modified: 
z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/configure.zcml
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/configure.zcml  
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/configure.zcml  
Sat Oct 22 14:40:01 2005
@@ -9,7 +9,7 @@
   <!-- Macro slot portlet -->
 
   <portlet
-      name="macroslot"
+      name="cpsskins.macroslot"
       title="Macro slot portlet"
       description="A portlet that displays the main content area of a page"
       factory=".MacroSlotPortlet"
@@ -21,7 +21,6 @@
       factory=".MacroSlotPortletData"
   />
 
-
   <!-- The portlet's presentation -->
 
   <presentation
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to