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
35168295
Commit
35168295
authored
Sep 07, 2000
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge changes from 2_2 branch
parent
f8fffc40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lib/python/App/FactoryDispatcher.py
lib/python/App/FactoryDispatcher.py
+6
-3
No files found.
lib/python/App/FactoryDispatcher.py
View file @
35168295
...
...
@@ -88,10 +88,10 @@
import
Acquisition
,
sys
,
Products
from
string
import
rfind
from
AccessControl.PermissionMapping
import
aqwrap
from
AccessControl.Owned
import
UnownableOwner
class
ProductDispatcher
(
Acquisition
.
Implicit
):
" "
# Allow access to factory dispatchers
__allow_access_to_unprotected_subobjects__
=
1
...
...
@@ -106,12 +106,12 @@ class ProductDispatcher(Acquisition.Implicit):
getattr
(
Products
,
name
,
None
),
'__FactoryDispatcher__'
,
FactoryDispatcher
)
dispatcher
=
dispatcher_class
(
product
,
self
.
aq_parent
,
REQUEST
)
return
dispatcher
.
__of__
(
self
)
class
FactoryDispatcher
(
Acquisition
.
Implicit
):
"""Provide a namspace for product "methods"
"""Provide a nam
e
space for product "methods"
"""
def
__init__
(
self
,
product
,
dest
,
REQUEST
=
None
):
...
...
@@ -159,6 +159,9 @@ class FactoryDispatcher(Acquisition.Implicit):
# Provide acquired indicators for critical OM methods:
_setObject
=
_getOb
=
Acquisition
.
Acquired
# Make sure factory methods are unowned:
_owner
=
UnownableOwner
# Provide a replacement for manage_main that does a redirection:
def
manage_main
(
trueself
,
self
,
REQUEST
,
update_menu
=
0
):
"""Implement a contents view by redirecting to the true view
...
...
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