[zope2-tracker] [Bug 1129030] [NEW] Simple class views have a unicode name

Wichert Akkerman 1129030 at bugs.launchpad.net
Mon Feb 18 12:05:54 UTC 2013


Public bug reported:

When you create a simple class view a new type is created with a
__name__ attribute. Unfortunately this is set to a unicode name, which
can create subtle problems in Zope(2) where ids must be str instances
and many pieces of code try to join ids. The bug is in
Products.Five.metaconfigure: in code paths that call makeClass() the
name is converted to a str by makeClass(), but makeClassForTemplate()
does not do that and will create classes with a unicode __name__.

** Affects: zope2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1129030

Title:
  Simple class views have a unicode name

To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/1129030/+subscriptions


More information about the zope2-tracker mailing list