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
fe24a0e5
Commit
fe24a0e5
authored
Feb 23, 2013
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged c129542 from 2.13 branch
parent
a1a2082f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
src/Products/Five/browser/metaconfigure.py
src/Products/Five/browser/metaconfigure.py
+2
-0
src/Products/Five/browser/tests/pages.txt
src/Products/Five/browser/tests/pages.txt
+3
-3
src/Products/Five/browser/tests/test_menu.py
src/Products/Five/browser/tests/test_menu.py
+3
-3
No files found.
src/Products/Five/browser/metaconfigure.py
View file @
fe24a0e5
...
@@ -208,6 +208,8 @@ class view(zope.browserpage.metaconfigure.view):
...
@@ -208,6 +208,8 @@ class view(zope.browserpage.metaconfigure.view):
(
_context
,
name
,
(
for_
,
layer
),
permission
,
class_
,
(
_context
,
name
,
(
for_
,
layer
),
permission
,
class_
,
allowed_interface
,
allowed_attributes
)
=
self
.
args
allowed_interface
,
allowed_attributes
)
=
self
.
args
name
=
str
(
name
)
# De-unicode
required
=
{}
required
=
{}
cdict
=
{}
cdict
=
{}
...
...
src/Products/Five/browser/tests/pages.txt
View file @
fe24a0e5
...
@@ -87,15 +87,15 @@ sure it is now:
...
@@ -87,15 +87,15 @@ sure it is now:
<Products.Five.browser.metaconfigure.NewStyleClass ...>
<Products.Five.browser.metaconfigure.NewStyleClass ...>
Both browser:view and browser:page are ILocation providers, so make sure they
Both browser:view and browser:page are ILocation providers, so make sure they
have a __name__ attribute:
have a __name__ attribute
with a str instance
:
>>> page = self.folder.unrestrictedTraverse('testoid/eagle.txt')
>>> page = self.folder.unrestrictedTraverse('testoid/eagle.txt')
>>> page.__name__
>>> page.__name__
u
'eagle.txt'
'eagle.txt'
>>> view = self.folder.unrestrictedTraverse('testoid/named_view')
>>> view = self.folder.unrestrictedTraverse('testoid/named_view')
>>> view.__name__
>>> view.__name__
u
'named_view'
'named_view'
ZPT-based browser pages
ZPT-based browser pages
-----------------------
-----------------------
...
...
src/Products/Five/browser/tests/test_menu.py
View file @
fe24a0e5
...
@@ -49,7 +49,7 @@ def test_menu():
...
@@ -49,7 +49,7 @@ def test_menu():
>>> menu.sort(lambda x, y: cmp(x['title'], y['title']))
>>> menu.sort(lambda x, y: cmp(x['title'], y['title']))
>>> from pprint import pprint
>>> from pprint import pprint
>>> pprint(menu[0])
>>> pprint(menu[0])
{'action':
u
'@@cockatiel_menu_public.html',
{'action': '@@cockatiel_menu_public.html',
'description': u'',
'description': u'',
'extra': None,
'extra': None,
'icon': None,
'icon': None,
...
@@ -100,7 +100,7 @@ def test_menu():
...
@@ -100,7 +100,7 @@ def test_menu():
>>> menu.sort(lambda x, y: cmp(x['title'], y['title']))
>>> menu.sort(lambda x, y: cmp(x['title'], y['title']))
>>> pprint(menu[0])
>>> pprint(menu[0])
{'action':
u
'@@cockatiel_menu_protected.html',
{'action': '@@cockatiel_menu_protected.html',
'description': u'',
'description': u'',
'extra': None,
'extra': None,
'icon': None,
'icon': None,
...
@@ -109,7 +109,7 @@ def test_menu():
...
@@ -109,7 +109,7 @@ def test_menu():
'title': u'Page in a menu (protected)'}
'title': u'Page in a menu (protected)'}
>>> pprint(menu[1])
>>> pprint(menu[1])
{'action':
u
'@@cockatiel_menu_public.html',
{'action': '@@cockatiel_menu_public.html',
'description': u'',
'description': u'',
'extra': None,
'extra': None,
'icon': None,
'icon': None,
...
...
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