[Zope] [SUM] : acces to file properties on a precondition

Didier Georgieff dgieff@divinerites.com
Sun, 17 Mar 2002 12:48:39 +0200


> > Just trying to test the new (?) policy for writing more how-tos and 
> > summarized text for the community and see the right way to do it ;-

Please find a small how-to summarizing the solution gave by Olivier Bleutgen.

http://www.zope.org/Members/dgeorgieff/howto_precondition

Hope this is the right way for doing it.

Didier.


> >  - I have a subclassed file (with some more properties like 
> > 'approved')
> >  - I want to use the precondition to check if the file is approved 
> > before allowing the donwload
> > The precondition method aquire the property ('approved') from the 
> > container (folder) and __not__ from the file.