Skip to content

Commit

Permalink
Merged c129542 from 2.13 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Feb 23, 2013
1 parent a1a2082 commit fe24a0e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/Products/Five/browser/metaconfigure.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ def __call__(self):
(_context, name, (for_, layer), permission, class_,
allowed_interface, allowed_attributes) = self.args

name = str(name) # De-unicode

required = {}

cdict = {}
Expand Down
6 changes: 3 additions & 3 deletions src/Products/Five/browser/tests/pages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ sure it is now:
<Products.Five.browser.metaconfigure.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
-----------------------
Expand Down
6 changes: 3 additions & 3 deletions src/Products/Five/browser/tests/test_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit fe24a0e

Please sign in to comment.