[Zope-Checkins] SVN: Zope/trunk/ Issue #2296: Fix broken ZClass
product import.
Tres Seaver
tseaver at palladion.com
Thu Mar 22 11:59:24 EDT 2007
Log message for revision 73460:
Issue #2296: Fix broken ZClass product import.
Changed:
U Zope/trunk/doc/CHANGES.txt
U Zope/trunk/lib/python/App/Product.py
-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt 2007-03-22 15:58:08 UTC (rev 73459)
+++ Zope/trunk/doc/CHANGES.txt 2007-03-22 15:59:23 UTC (rev 73460)
@@ -88,6 +88,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/trunk/lib/python/App/Product.py
===================================================================
--- Zope/trunk/lib/python/App/Product.py 2007-03-22 15:58:08 UTC (rev 73459)
+++ Zope/trunk/lib/python/App/Product.py 2007-03-22 15:59:23 UTC (rev 73460)
@@ -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