[Zope-Checkins] SVN: Zope/branches/2.10/ Issue #2296: fix broken ZClass product import.

Tres Seaver tseaver at palladion.com
Thu Mar 22 11:51:29 EDT 2007


Log message for revision 73456:
  Issue #2296:  fix broken ZClass product import.

Changed:
  U   Zope/branches/2.10/doc/CHANGES.txt
  U   Zope/branches/2.10/lib/python/App/Product.py

-=-
Modified: Zope/branches/2.10/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.10/doc/CHANGES.txt	2007-03-22 15:44:16 UTC (rev 73455)
+++ Zope/branches/2.10/doc/CHANGES.txt	2007-03-22 15:51:29 UTC (rev 73456)
@@ -8,6 +8,10 @@
 
     Bugs fixed
 
+      - Collector #2296: Fixed import of ZClass products, broken by removal
+        of BBB support for pasting objects whose meta_type info was
+        permission-free.
+
       - Collector #2294: Protected DOS-able ControlPanel methods with the
         same 'requestmethod' wrapper.
 

Modified: Zope/branches/2.10/lib/python/App/Product.py
===================================================================
--- Zope/branches/2.10/lib/python/App/Product.py	2007-03-22 15:44:16 UTC (rev 73455)
+++ Zope/branches/2.10/lib/python/App/Product.py	2007-03-22 15:51:29 UTC (rev 73456)
@@ -47,6 +47,7 @@
 from HelpSys.HelpSys import ProductHelp
 from AccessControl import Unauthorized
 from AccessControl import ClassSecurityInfo
+from AccessControl.Permissions import manage_zclasses
 
 from Factory import Factory
 from Permission import PermissionManager
@@ -73,7 +74,8 @@
     meta_type ='Product Management'
     icon='p_/ProductFolder_icon'
 
-    all_meta_types={'name': 'Product', 'action': 'manage_addProductForm'},
+    all_meta_types={'name': 'Product', 'action': 'manage_addProductForm',
+                    'permission': manage_zclasses},
     meta_types=all_meta_types
 
     # This prevents subobjects from being owned!



More information about the Zope-Checkins mailing list