[Zope3-dev] Re: another layers quicky?

Philipp von Weitershausen philipp at weitershausen.de
Tue Oct 17 12:36:38 EDT 2006


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?



More information about the Zope3-dev mailing list