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
5d3a1897
Commit
5d3a1897
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 M
parent
a955562e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
doc/CHANGES.rst
doc/CHANGES.rst
+3
-0
src/Products/Five/browser/metaconfigure.py
src/Products/Five/browser/metaconfigure.py
+2
-1
No files found.
doc/CHANGES.rst
View file @
5d3a1897
...
@@ -11,6 +11,9 @@ http://docs.zope.org/zope2/releases/.
...
@@ -11,6 +11,9 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
Bugs Fixed
++++++++++
++++++++++
- 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.
- In ``PageTemplate.pt_errors`` accept the ``check_macro_expansion`` argument.
This is added for compatibility with ``zope.pagetemplate`` 4.0.0.
This is added for compatibility with ``zope.pagetemplate`` 4.0.0.
The argument is ignored (LP #732972).
The argument is ignored (LP #732972).
...
...
src/Products/Five/browser/metaconfigure.py
View file @
5d3a1897
...
@@ -92,6 +92,7 @@ def page(_context, name, permission, for_=Interface,
...
@@ -92,6 +92,7 @@ def page(_context, name, permission, for_=Interface,
allowed_interface
=
None
,
allowed_attributes
=
None
,
allowed_interface
=
None
,
allowed_attributes
=
None
,
attribute
=
'__call__'
,
menu
=
None
,
title
=
None
,
attribute
=
'__call__'
,
menu
=
None
,
title
=
None
,
):
):
name
=
str
(
name
)
# De-unicode
_handle_menu
(
_context
,
menu
,
title
,
[
for_
],
name
,
permission
,
layer
)
_handle_menu
(
_context
,
menu
,
title
,
[
for_
],
name
,
permission
,
layer
)
required
=
{}
required
=
{}
...
@@ -452,7 +453,7 @@ class ViewMixinForTemplates(zope.browserpage.simpleviewclass.simple):
...
@@ -452,7 +453,7 @@ class ViewMixinForTemplates(zope.browserpage.simpleviewclass.simple):
# Original version: zope.browserpage.simpleviewclass.SimpleViewClass
# Original version: zope.browserpage.simpleviewclass.SimpleViewClass
def
SimpleViewClass
(
src
,
offering
=
None
,
used_for
=
None
,
bases
=
(),
name
=
u
''
):
def
SimpleViewClass
(
src
,
offering
=
None
,
used_for
=
None
,
bases
=
(),
name
=
''
):
if
offering
is
None
:
if
offering
is
None
:
offering
=
sys
.
_getframe
(
1
).
f_globals
offering
=
sys
.
_getframe
(
1
).
f_globals
...
...
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