[Zope] PUT method & get property of parent folder
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Tue, 9 Apr 2002 11:32:50 +0200
hi again,
maybe I didn't understand the problem right away... but maybe this will work
(it does for me):
if self.hasProperty('TIDY'):
ThenDoMuchMoreCleanUp
or:
if self.aq_parent.hasProperty('TIDY'):
ThenDoMuchMoreCleanUp
greetings, maik.
On Tue, 09 Apr 2002 11:23:25 +0200 "Marcus Schopen" <marcus@localguru.de>
wrote:
> Hei Maik,
>
> thanks for answering.
>
> Maik Jablonski wrote:
> > if hasattr(self,'TIDY'):
> > ThenDoYourCleaningUp
>
> That's what I thought too. But result is false and should be true.
>
> > or if you want the property of the parent folder (or aquiring up):
> >
> > if hasattr(self.aq_parent,'TIDY'):
> > ThenDoYourCleaningUp
>
> does not work