[Checkins] SVN: Products.CMF - remove the ability to create content from the ZMI. This was never fully

Jens Vagelpohl jens at dataflake.org
Fri Sep 12 10:12:51 EDT 2008


Log message for revision 91086:
  - remove the ability to create content from the ZMI. This was never fully
    supported and carried the risk of people ending up with half-formed 
    content. And it hasn't worked at all for a while because only content
    types with ld-style factories were shown.
  

Changed:
  U   Products.CMFCalendar/trunk/Products/CMFCalendar/CHANGES.txt
  U   Products.CMFCalendar/trunk/Products/CMFCalendar/__init__.py
  U   Products.CMFCore/trunk/Products/CMFCore/CHANGES.txt
  U   Products.CMFCore/trunk/Products/CMFCore/__init__.py
  U   Products.CMFDefault/trunk/Products/CMFDefault/CHANGES.txt
  U   Products.CMFDefault/trunk/Products/CMFDefault/__init__.py
  U   Products.CMFTopic/trunk/Products/CMFTopic/CHANGES.txt
  U   Products.CMFTopic/trunk/Products/CMFTopic/__init__.py

-=-
Modified: Products.CMFCalendar/trunk/Products/CMFCalendar/CHANGES.txt
===================================================================
--- Products.CMFCalendar/trunk/Products/CMFCalendar/CHANGES.txt	2008-09-12 14:05:33 UTC (rev 91085)
+++ Products.CMFCalendar/trunk/Products/CMFCalendar/CHANGES.txt	2008-09-12 14:12:50 UTC (rev 91086)
@@ -4,6 +4,9 @@
 2.2.0 (unreleased)
 ------------------
 
+- ZMI: Removed the ability to create content from the ZMI. It was never
+  fully supported and carried the risk of creating half-formed content.
+
 - Event: 'addEvent' no longer sends add events.
 
 - profiles: Removed obsolete local import step registrations.

Modified: Products.CMFCalendar/trunk/Products/CMFCalendar/__init__.py
===================================================================
--- Products.CMFCalendar/trunk/Products/CMFCalendar/__init__.py	2008-09-12 14:05:33 UTC (rev 91085)
+++ Products.CMFCalendar/trunk/Products/CMFCalendar/__init__.py	2008-09-12 14:12:50 UTC (rev 91086)
@@ -15,7 +15,6 @@
 $Id$
 """
 
-from Products.CMFCore.utils import ContentInit
 from Products.CMFCore.utils import ToolInit
 
 import Event
@@ -32,10 +31,3 @@
             , tools=(CalendarTool.CalendarTool,)
             , icon='tool.gif'
             ).initialize( context )
-
-    # BBB: register oldstyle constructors
-    ContentInit( 'CMF Calendar Content'
-               , content_types=()
-               , permission=AddPortalContent
-               , extra_constructors=(Event.addEvent,)
-               ).initialize( context )

Modified: Products.CMFCore/trunk/Products/CMFCore/CHANGES.txt
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/CHANGES.txt	2008-09-12 14:05:33 UTC (rev 91085)
+++ Products.CMFCore/trunk/Products/CMFCore/CHANGES.txt	2008-09-12 14:12:50 UTC (rev 91086)
@@ -4,6 +4,9 @@
 2.2.0 (unreleased)
 ------------------
 
+- ZMI: Removed the ability to create content from the ZMI. It was never
+  fully supported and carried the risk of creating half-formed content.
+
 - FSMetadata: Remove handling of .security and .properties metadata
   files which was supposed to have been removed in CMF 2.0 already.
 

Modified: Products.CMFCore/trunk/Products/CMFCore/__init__.py
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/__init__.py	2008-09-12 14:05:33 UTC (rev 91085)
+++ Products.CMFCore/trunk/Products/CMFCore/__init__.py	2008-09-12 14:12:50 UTC (rev 91086)
@@ -126,13 +126,6 @@
                   , icon='tool.gif'
                   ).initialize( context )
 
-    # BBB: register oldstyle constructors
-    utils.ContentInit( 'CMF Core Content'
-                     , content_types=()
-                     , permission=AddPortalFolders
-                     , extra_constructors=_EXTRA_CONSTRUCTORS
-                     ).initialize( context )
-
     # make registerHelp work with 2 directories
     help = context.getProductHelp()
     lastRegistered = help.lastRegistered

Modified: Products.CMFDefault/trunk/Products/CMFDefault/CHANGES.txt
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/CHANGES.txt	2008-09-12 14:05:33 UTC (rev 91085)
+++ Products.CMFDefault/trunk/Products/CMFDefault/CHANGES.txt	2008-09-12 14:12:50 UTC (rev 91086)
@@ -4,6 +4,9 @@
 2.2.0 (unreleased)
 ------------------
 
+- ZMI: Removed the ability to create content from the ZMI. It was never
+  fully supported and carried the risk of creating half-formed content.
+
 - SyndicationTool: Removed obsolete documentation link from the
   Overview ZMI tab.
   (https://bugs.launchpad.net/zope-cmf/+bug/185090)

Modified: Products.CMFDefault/trunk/Products/CMFDefault/__init__.py
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/__init__.py	2008-09-12 14:05:33 UTC (rev 91085)
+++ Products.CMFDefault/trunk/Products/CMFDefault/__init__.py	2008-09-12 14:12:50 UTC (rev 91086)
@@ -16,7 +16,6 @@
 """
 
 from Products.CMFCore.utils import ToolInit
-from Products.CMFCore.utils import ContentInit
 from Products.CMFCore.utils import registerIcon
 
 import DefaultWorkflow
@@ -75,13 +74,6 @@
             , icon='tool.gif'
             ).initialize( context )
 
-    # BBB: register oldstyle constructors
-    ContentInit( 'CMF Default Content'
-               , content_types=()
-               , permission=AddPortalContent
-               , extra_constructors=contentConstructors
-               ).initialize( context )
-
     context.registerClass( Portal.CMFSite
                          , constructors=(factory.addConfiguredSiteForm,
                                          factory.addConfiguredSite)

Modified: Products.CMFTopic/trunk/Products/CMFTopic/CHANGES.txt
===================================================================
--- Products.CMFTopic/trunk/Products/CMFTopic/CHANGES.txt	2008-09-12 14:05:33 UTC (rev 91085)
+++ Products.CMFTopic/trunk/Products/CMFTopic/CHANGES.txt	2008-09-12 14:12:50 UTC (rev 91086)
@@ -4,6 +4,9 @@
 2.2.0 (unreleased)
 ------------------
 
+- ZMI: Removed the ability to create content from the ZMI. It was never
+  fully supported and carried the risk of creating half-formed content.
+
 - unit tests: Add a functional testing layer for CMFTopic, and use it.
 
 - Topic: 'addTopic' no longer sends add events.

Modified: Products.CMFTopic/trunk/Products/CMFTopic/__init__.py
===================================================================
--- Products.CMFTopic/trunk/Products/CMFTopic/__init__.py	2008-09-12 14:05:33 UTC (rev 91085)
+++ Products.CMFTopic/trunk/Products/CMFTopic/__init__.py	2008-09-12 14:12:50 UTC (rev 91086)
@@ -15,8 +15,6 @@
 $Id$
 """
 
-from Products.CMFCore.utils import ContentInit
-
 import Topic
 from permissions import AddTopics
 
@@ -32,10 +30,3 @@
 
     context.registerHelpTitle( 'CMF Topic Help' )
     context.registerHelp( directory='help' )
-
-    # BBB: register oldstyle constructors
-    ContentInit( 'CMF Topic Content'
-               , content_types=()
-               , permission=AddTopics
-               , extra_constructors=(Topic.addTopic,)
-               ).initialize( context )



More information about the Checkins mailing list