[Zope3-dev] MessageID as rocks?
Marius Gedminas
mgedmin@codeworks.lt
Thu, 17 Apr 2003 10:13:52 +0300
On Wed, Apr 16, 2003 at 03:22:27PM -0400, Barry Warsaw wrote:
> Yeah, fixing isinstance() wasn't too painful. ;)
>
> - In zope/proxy/__init__.py I added a function called
> proxy_compatible_isinstance() which (I believe) mimics what Python 2.3's
> isinstance() does.
At the moment it causes failure of one of the unit tests
(zope.app.services.tests.test_zpt.Test.test_usage) and one of the
functional tests (...TestVirtualHosting.test_request_url):
TypeError: issubclass() arg 1 must be a class
I added a debugging print there and found, that obj is a security
proxied dict {'template_usage': u'spam'}. issubclass gets <type 'dict'>
as its first argument and barfs.
Marius Gedminas
--
Codeworks is available for Zope consulting -- http://www.codeworks.lt/