[Zope3-dev] Re: another layers quicky?

2006-10-17 Thread Philipp von Weitershausen
Chris Withers wrote: Hi (yet) again ;-) class MyLayer: @classmethod def setUp(self): self.app = Testing.ZopeTestCase.Zope2.app() @classmethod def tearDown(self): Testing.ZopeTestCase.close() Shrug! That will modify the class! self is the class here (it's convention to call

Re: [Zope3-dev] Re: another layers quicky?

2006-10-17 Thread Chris Withers
Philipp von Weitershausen wrote: What do I put in place of the ? to get hold of the layer's app? self.layer.app but self.layer is a string, no? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope3-dev] Re: another layers quicky?

2006-10-17 Thread Chris Withers
Philipp von Weitershausen wrote: Chris Withers wrote: Philipp von Weitershausen wrote: What do I put in place of the ? to get hold of the layer's app? self.layer.app but self.layer is a string, no? Huh? No, it's the layer object (e.g. the class) even if you do: class

Re: [Zope3-dev] Re: another layers quicky?

2006-10-17 Thread Philipp von Weitershausen
Chris Withers wrote: Philipp von Weitershausen wrote: Chris Withers wrote: Philipp von Weitershausen wrote: What do I put in place of the ? to get hold of the layer's app? self.layer.app but self.layer is a string, no? Huh? No, it's the layer object (e.g. the class) even if you do:

Re: [Zope3-dev] Re: another layers quicky?

2006-10-17 Thread Chris Withers
Philipp von Weitershausen wrote: ? No. Who said you should do that? http://zopewiki.org/TestLayersHowTo Will a string even work? Yes. Chris - anyway, right now I'm more annoyed that savepoints are sllooo and DemoStorage doesn't support undo... help with either would be much

Re: [Zope3-dev] Re: another layers quicky?

2006-10-17 Thread Paul Winkler
On Tue, Oct 17, 2006 at 05:40:51PM +0100, Chris Withers wrote: Philipp von Weitershausen wrote: ? No. Who said you should do that? http://zopewiki.org/TestLayersHowTo ... and more authoritatively, a number of tests in zope/testing/testrunner-ex use strings. Prior to the introduction of