[Zope-Checkins] SVN: Zope/branches/2.13/ Use str __name__ for generated simple view classes.
Wichert Akkerman
cvs-admin at zope.org
Mon Feb 18 13:55:49 UTC 2013
Log message for revision 129447:
Use str __name__ for generated simple view classes.
This fixes LP #1129030
Changed:
U Zope/branches/2.13/doc/CHANGES.rst
U Zope/branches/2.13/src/Products/Five/browser/metaconfigure.py
-=-
Modified: Zope/branches/2.13/doc/CHANGES.rst
===================================================================
--- Zope/branches/2.13/doc/CHANGES.rst 2013-02-18 08:42:10 UTC (rev 129446)
+++ Zope/branches/2.13/doc/CHANGES.rst 2013-02-18 13:55:48 UTC (rev 129447)
@@ -8,6 +8,9 @@
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.
Modified: Zope/branches/2.13/src/Products/Five/browser/metaconfigure.py
===================================================================
--- Zope/branches/2.13/src/Products/Five/browser/metaconfigure.py 2013-02-18 08:42:10 UTC (rev 129446)
+++ Zope/branches/2.13/src/Products/Five/browser/metaconfigure.py 2013-02-18 13:55:48 UTC (rev 129447)
@@ -59,6 +59,7 @@
attribute='__call__', menu=None, title=None,
):
+ name = str(name) # De-unicode
_handle_menu(_context, menu, title, [for_], name, permission)
if not (class_ or template):
More information about the Zope-Checkins
mailing list