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
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
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
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:
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
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