Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
0a6e6f19
Commit
0a6e6f19
authored
Mar 22, 2007
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #2296: Fix broken ZClass product import.
parent
e3e54b0c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
doc/CHANGES.txt
doc/CHANGES.txt
+4
-0
lib/python/App/Product.py
lib/python/App/Product.py
+3
-1
No files found.
doc/CHANGES.txt
View file @
0a6e6f19
...
@@ -88,6 +88,10 @@ Zope Changes
...
@@ -88,6 +88,10 @@ Zope Changes
Bugs Fixed
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
- Collector #2294: Protected DOS-able ControlPanel methods with the
same 'requestmethod' wrapper.
same 'requestmethod' wrapper.
...
...
lib/python/App/Product.py
View file @
0a6e6f19
...
@@ -47,6 +47,7 @@ from OFS.Folder import Folder
...
@@ -47,6 +47,7 @@ from OFS.Folder import Folder
from
HelpSys.HelpSys
import
ProductHelp
from
HelpSys.HelpSys
import
ProductHelp
from
AccessControl
import
Unauthorized
from
AccessControl
import
Unauthorized
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.Permissions
import
manage_zclasses
from
Factory
import
Factory
from
Factory
import
Factory
from
Permission
import
PermissionManager
from
Permission
import
PermissionManager
...
@@ -73,7 +74,8 @@ class ProductFolder(Folder):
...
@@ -73,7 +74,8 @@ class ProductFolder(Folder):
meta_type
=
'Product Management'
meta_type
=
'Product Management'
icon
=
'p_/ProductFolder_icon'
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
meta_types
=
all_meta_types
# This prevents subobjects from being owned!
# This prevents subobjects from being owned!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment