Re: [Zope3-dev] Re: another layers quicky?
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 testrunner-layers-api.txt, there wasn't much else to go on. -- Paul Winkler http://www.slinkp.com ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Re: another layers quicky?
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 appreciated... -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Re: another layers quicky?
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: class MyTests(TestCase): layer = 'X.Y.Z' ? No. Who said you should do that? Will a string even work? ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Re: another layers quicky?
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 MyTests(TestCase): layer = 'X.Y.Z' ? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Re: another layers quicky?
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) ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com
Re: [Zope3-dev] Re: another layers quicky?
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 ___ Zope3-dev mailing list Zope3-dev@zope.org Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com