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
d261f268
Commit
d261f268
authored
Apr 26, 2008
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Found another class which is exactly the same now as the one in Zope3.
parent
daf20aa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
lib/python/Products/Five/browser/configure.zcml
lib/python/Products/Five/browser/configure.zcml
+1
-1
lib/python/Products/Five/browser/menu.py
lib/python/Products/Five/browser/menu.py
+6
-9
No files found.
lib/python/Products/Five/browser/configure.zcml
View file @
d261f268
...
...
@@ -80,7 +80,7 @@
for="*"
name="view_get_menu"
permission="zope.Public"
class=".menu.MenuAccessView"
class="
zope.app.publisher.browser
.menu.MenuAccessView"
allowed_interface="zope.app.publisher.interfaces.browser.IMenuAccessView"
/>
...
...
lib/python/Products/Five/browser/menu.py
View file @
d261f268
...
...
@@ -15,13 +15,10 @@
$Id$
"""
from
zope.interface
import
implements
from
zope.app.publisher.interfaces.browser
import
IMenuAccessView
from
zope.app.publisher.browser.menu
import
getMenu
from
Products.Five
import
BrowserView
import
zope.deferredimport
class
MenuAccessView
(
BrowserView
):
implements
(
IMenuAccessView
)
def
__getitem__
(
self
,
menu_id
):
return
getMenu
(
menu_id
,
self
.
context
,
self
.
request
)
zope
.
deferredimport
.
deprecated
(
"The Five specific view has been made obsolete. Please use the "
"view from zope.app.publisher directly."
,
MenuAccessView
=
'zope.app.publisher.browser.menu.MenuAccessView'
,
)
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