[Zope3-dev] layers can't be new style classes?

Chris Withers chris at simplistix.co.uk
Tue Oct 17 06:30:46 EDT 2006


Hi All,

It would appear that Philipp's article is somewhat misleading in that 
layers can't be new style classes...

class MyLayer(object):

    def setUp(self): pass

    def tearDown(self): pass

..results in the following when used as a layer:

AttributeError: type object 'object' has no attribute 'setUp'

Is this a bug in Philipp's article or in the testrunner?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope3-dev mailing list