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
f380c5b8
Commit
f380c5b8
authored
Feb 18, 2013
by
Wichert Akkerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use str __name__ for generated simple view classes.
This fixes LP #1129030
parent
656f6278
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
doc/CHANGES.rst
doc/CHANGES.rst
+3
-0
src/Products/Five/browser/metaconfigure.py
src/Products/Five/browser/metaconfigure.py
+1
-0
No files found.
doc/CHANGES.rst
View file @
f380c5b8
...
...
@@ -8,6 +8,9 @@ http://docs.zope.org/zope2/releases/.
2.13.20 (unreleased)
--------------------
- Make sure the generated classes for simple browser pages (SimpleViewClasses)
have a str __name__. See LP #1129030.
- In PageTemplate.pt_errors accept the check_macro_expansion argument.
This is added for compatibility with zope.pagetemplate 4.0.0. The
argument is ignored. See LP #732972.
...
...
src/Products/Five/browser/metaconfigure.py
View file @
f380c5b8
...
...
@@ -59,6 +59,7 @@ def page(_context, name, permission, for_,
attribute
=
'__call__'
,
menu
=
None
,
title
=
None
,
):
name
=
str
(
name
)
# De-unicode
_handle_menu
(
_context
,
menu
,
title
,
[
for_
],
name
,
permission
)
if
not
(
class_
or
template
):
...
...
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