[SUM] : acces to file properties on a precondition
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.
hi, I just created a zclass which is derived from the dtml-document. The only difference are some additional properties. Now the question: How is it possible to add a default text to an instance of the new zclass? I tried to add a text by dtml after the creation of the instance, but without success. Perhaps someone understands my question and is able to help ... Thanks a lot Marc
hello, On Sun, 17 Mar 2002 13:55:24 +0100 "Marc Fischer" <marcbpc@gmx.de> wrote:
I just created a zclass which is derived from the dtml-document. The only difference are some additional properties. Now the question: How is it possible to add a default text to an instance of the new zclass? I tried to add a text by dtml after the creation of the instance, but without success.
enter your products constructor method... there will be a line like this: <dtml-with "yourProduct.createInObjectManager(REQUEST['id'], REQUEST)"> after that you simply add: <dtml-call "this().manage_edit('yourDefaultText',this().title)"> greetings, maik. -- maik jablonski visit www.zope.org, universitaet bielefeld LET'S GET ZOPED!!!! zentrum fuer lehrerbildung didaktik des sachunterrichts postfach 10 01 31 33501 bielefeld germany tel: + 49 (0) 521 106 4234 http://www.zfl.uni-bielefeld.de/ http://www.sachunterricht-online.de/
participants (3)
-
Didier Georgieff -
Maik Jablonski -
Marc Fischer