[CMF-checkins] SVN: CMF/trunk/C - split off CMFTopic profile

Yvo Schubbe y.2005- at wcm-solutions.de
Thu Oct 20 06:30:49 EDT 2005


Log message for revision 39521:
  - split off CMFTopic profile

Changed:
  U   CMF/trunk/CHANGES.txt
  U   CMF/trunk/CMFDefault/profiles/default/skins.xml
  D   CMF/trunk/CMFDefault/profiles/default/types/Topic.xml
  U   CMF/trunk/CMFDefault/profiles/default/typestool.xml
  U   CMF/trunk/CMFDefault/profiles/default/workflows.xml
  U   CMF/trunk/CMFTopic/DEPENDENCIES.txt
  U   CMF/trunk/CMFTopic/__init__.py
  A   CMF/trunk/CMFTopic/profiles/
  A   CMF/trunk/CMFTopic/profiles/default/
  A   CMF/trunk/CMFTopic/profiles/default/skins.xml
  A   CMF/trunk/CMFTopic/profiles/default/types/
  A   CMF/trunk/CMFTopic/profiles/default/types/Topic.xml
  A   CMF/trunk/CMFTopic/profiles/default/typestool.xml
  A   CMF/trunk/CMFTopic/profiles/default/workflows.xml

-=-
Modified: CMF/trunk/CHANGES.txt
===================================================================
--- CMF/trunk/CHANGES.txt	2005-10-20 09:50:48 UTC (rev 39520)
+++ CMF/trunk/CHANGES.txt	2005-10-20 10:30:49 UTC (rev 39521)
@@ -2,6 +2,9 @@
 
   New Features
 
+    - CMFDefault and CMFTopic: Split off CMFTopic profile.
+      CMFTopic support is now configured by an optional extension profile.
+
     - TypesTool: Improved add form for type info objects.
       Presettings can now be loaded from type info settings in setup profiles.
       This replaces the feature that did allow to load presettings from

Modified: CMF/trunk/CMFDefault/profiles/default/skins.xml
===================================================================
--- CMF/trunk/CMFDefault/profiles/default/skins.xml	2005-10-20 09:50:48 UTC (rev 39520)
+++ CMF/trunk/CMFDefault/profiles/default/skins.xml	2005-10-20 10:30:49 UTC (rev 39521)
@@ -10,11 +10,8 @@
                  directory="CMFDefault/skins/zpt_control"/>
  <skin-directory id="zpt_generic"
                  directory="CMFDefault/skins/zpt_generic"/>
- <skin-directory id="zpt_topic"
-                 directory="CMFTopic/skins/zpt_topic"/>
  <skin-path id="Basic">
   <layer name="custom"/>
-  <layer name="zpt_topic"/>
   <layer name="zpt_content"/>
   <layer name="zpt_generic"/>
   <layer name="zpt_control"/>

Deleted: CMF/trunk/CMFDefault/profiles/default/types/Topic.xml
===================================================================
--- CMF/trunk/CMFDefault/profiles/default/types/Topic.xml	2005-10-20 09:50:48 UTC (rev 39520)
+++ CMF/trunk/CMFDefault/profiles/default/types/Topic.xml	2005-10-20 10:30:49 UTC (rev 39521)
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-<object name="Topic" meta_type="Factory-based Type Information"
-   i18n:domain="cmf_default" xmlns:i18n="http://xml.zope.org/namespaces/i18n">
- <property name="title" i18n:translate="">Topic</property>
- <property name="description"
-    i18n:translate="">Topics are canned queries for organizing content with up to date queries into the catalog.</property>
- <property name="content_icon">topic_icon.gif</property>
- <property name="content_meta_type">Portal Topic</property>
- <property name="product">CMFTopic</property>
- <property name="factory">addTopic</property>
- <property name="immediate_view">topic_edit_form</property>
- <property name="global_allow">True</property>
- <property name="filter_content_types">True</property>
- <property name="allowed_content_types">
-  <element value="Topic"/>
- </property>
- <property name="allow_discussion">False</property>
- <alias from="(Default)" to="topic_view"/>
- <alias from="view" to="topic_view"/>
- <action title="View" action_id="view" category="object" condition_expr=""
-    url_expr="string:${object_url}/topic_view" visible="True">
-  <permission value="View"/>
- </action>
- <action title="Edit" action_id="edit" category="object" condition_expr=""
-    url_expr="string:${object_url}/topic_edit_form" visible="True">
-  <permission value="Change portal topics"/>
- </action>
- <action title="Criteria" action_id="criteria" category="object"
-    condition_expr="" url_expr="string:${object_url}/topic_criteria_form"
-    visible="True">
-  <permission value="Change portal topics"/>
- </action>
- <action title="Subtopics" action_id="folderContents" category="object"
-    condition_expr="" url_expr="string:${object_url}/folder_contents"
-    visible="True">
-  <permission value="List folder contents"/>
- </action>
- <action title="New..." action_id="new" category="object" condition_expr=""
-    url_expr="string:${object_url}/folder_factories" visible="False">
-  <permission value="Add portal topics"/>
- </action>
- <action title="Rename items" action_id="rename_items" category="object"
-    condition_expr="" url_expr="string:${object_url}/folder_rename_form"
-    visible="False">
-  <permission value="Add portal topics"/>
- </action>
-</object>

Modified: CMF/trunk/CMFDefault/profiles/default/typestool.xml
===================================================================
--- CMF/trunk/CMFDefault/profiles/default/typestool.xml	2005-10-20 09:50:48 UTC (rev 39520)
+++ CMF/trunk/CMFDefault/profiles/default/typestool.xml	2005-10-20 10:30:49 UTC (rev 39521)
@@ -11,5 +11,4 @@
  <type id="Image"/>
  <type id="Link"/>
  <type id="News Item" filename="types/News_Item.xml"/>
- <type id="Topic"/>
 </types-tool>

Modified: CMF/trunk/CMFDefault/profiles/default/workflows.xml
===================================================================
--- CMF/trunk/CMFDefault/profiles/default/workflows.xml	2005-10-20 09:50:48 UTC (rev 39520)
+++ CMF/trunk/CMFDefault/profiles/default/workflows.xml	2005-10-20 10:30:49 UTC (rev 39521)
@@ -13,8 +13,5 @@
   <type type_id="Folder">
 
   </type>
-  <type type_id="Topic">
-
-  </type>
  </bindings>
 </workflow-tool>

Modified: CMF/trunk/CMFTopic/DEPENDENCIES.txt
===================================================================
--- CMF/trunk/CMFTopic/DEPENDENCIES.txt	2005-10-20 09:50:48 UTC (rev 39520)
+++ CMF/trunk/CMFTopic/DEPENDENCIES.txt	2005-10-20 10:30:49 UTC (rev 39521)
@@ -2,3 +2,4 @@
 Five >= 1.2
 CMFCore
 CMFDefault
+GenericSetup

Modified: CMF/trunk/CMFTopic/__init__.py
===================================================================
--- CMF/trunk/CMFTopic/__init__.py	2005-10-20 09:50:48 UTC (rev 39520)
+++ CMF/trunk/CMFTopic/__init__.py	2005-10-20 10:30:49 UTC (rev 39521)
@@ -21,6 +21,8 @@
 
 from Products.CMFCore.utils import ContentInit
 from Products.CMFCore.DirectoryView import registerDirectory
+from Products.GenericSetup import EXTENSION
+from Products.GenericSetup import profile_registry
 
 import Topic
 import SimpleStringCriterion
@@ -57,3 +59,10 @@
                , extra_constructors = (Topic.addTopic,)
                , fti = Topic.factory_type_information
                ).initialize( context )
+
+    profile_registry.registerProfile('default',
+                                     'CMFTopic',
+                                     'Adds topic portal type.',
+                                     'profiles/default',
+                                     'CMFTopic',
+                                     EXTENSION)

Added: CMF/trunk/CMFTopic/profiles/default/skins.xml
===================================================================
--- CMF/trunk/CMFTopic/profiles/default/skins.xml	2005-10-20 09:50:48 UTC (rev 39520)
+++ CMF/trunk/CMFTopic/profiles/default/skins.xml	2005-10-20 10:30:49 UTC (rev 39521)
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<skins-tool>
+ <skin-directory id="zpt_topic"
+                 directory="CMFTopic/skins/zpt_topic"/>
+ <skin-path id="*">
+  <layer name="zpt_topic" insert-before="zpt_content"/>
+ </skin-path>
+</skins-tool>


Property changes on: CMF/trunk/CMFTopic/profiles/default/skins.xml
___________________________________________________________________
Name: svn:eol-style
   + native

Copied: CMF/trunk/CMFTopic/profiles/default/types/Topic.xml (from rev 39518, CMF/trunk/CMFDefault/profiles/default/types/Topic.xml)

Added: CMF/trunk/CMFTopic/profiles/default/typestool.xml
===================================================================
--- CMF/trunk/CMFTopic/profiles/default/typestool.xml	2005-10-20 09:50:48 UTC (rev 39520)
+++ CMF/trunk/CMFTopic/profiles/default/typestool.xml	2005-10-20 10:30:49 UTC (rev 39521)
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<types-tool>
+ <type id="Topic"/>
+</types-tool>


Property changes on: CMF/trunk/CMFTopic/profiles/default/typestool.xml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: CMF/trunk/CMFTopic/profiles/default/workflows.xml
===================================================================
--- CMF/trunk/CMFTopic/profiles/default/workflows.xml	2005-10-20 09:50:48 UTC (rev 39520)
+++ CMF/trunk/CMFTopic/profiles/default/workflows.xml	2005-10-20 10:30:49 UTC (rev 39521)
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<workflow-tool>
+ <bindings>
+  <type type_id="Topic">
+
+  </type>
+ </bindings>
+</workflow-tool>


Property changes on: CMF/trunk/CMFTopic/profiles/default/workflows.xml
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the CMF-checkins mailing list