[Zope3-dev] Re: layers can't be new style classes?
Jürgen Kartnaller
juergen at kartnaller.at
Tue Oct 17 07:26:34 EDT 2006
Hi Chris.
Look at z3c.sampledata.layer, I provide a testlayer there.
Maybe you need to provide the __bases__!
Jürgen
Chris Withers wrote:
> 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
>
More information about the Zope3-dev
mailing list