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
21da65a2
Commit
21da65a2
authored
Feb 20, 2013
by
Wichert Akkerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test errors for unicode id fixes.
parent
11d30e34
Changes
3
Hide 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 @
21da65a2
...
...
@@ -195,6 +195,8 @@ class view(zope.browserpage.metaconfigure.view):
(
_context
,
name
,
for_
,
permission
,
layer
,
class_
,
allowed_interface
,
allowed_attributes
)
=
self
.
args
name
=
str
(
name
)
# De-unicode
required
=
{}
cdict
=
{}
...
...
src/Products/Five/browser/tests/pages.txt
View file @
21da65a2
...
...
@@ -87,15 +87,15 @@ sure it is now:
<Products.Five.metaclass.NewStyleClass ...>
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.__name__
u
'eagle.txt'
'eagle.txt'
>>> view = self.folder.unrestrictedTraverse('testoid/named_view')
>>> view.__name__
u
'named_view'
'named_view'
ZPT-based browser pages
-----------------------
...
...
src/Products/Five/browser/tests/test_menu.py
View file @
21da65a2
...
...
@@ -49,7 +49,7 @@ def test_menu():
>>> menu.sort(lambda x, y: cmp(x['title'], y['title']))
>>> from pprint import pprint
>>> pprint(menu[0])
{'action':
u
'@@cockatiel_menu_public.html',
{'action': '@@cockatiel_menu_public.html',
'description': u'',
'extra': None,
'icon': None,
...
...
@@ -100,7 +100,7 @@ def test_menu():
>>> menu.sort(lambda x, y: cmp(x['title'], y['title']))
>>> pprint(menu[0])
{'action':
u
'@@cockatiel_menu_protected.html',
{'action': '@@cockatiel_menu_protected.html',
'description': u'',
'extra': None,
'icon': None,
...
...
@@ -109,7 +109,7 @@ def test_menu():
'title': u'Page in a menu (protected)'}
>>> pprint(menu[1])
{'action':
u
'@@cockatiel_menu_public.html',
{'action': '@@cockatiel_menu_public.html',
'description': u'',
'extra': 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