Commit 21da65a2 authored by Wichert Akkerman's avatar Wichert Akkerman

Fix test errors for unicode id fixes.

parent 11d30e34
......@@ -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 = {}
......
......@@ -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
-----------------------
......
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment