Re: [Zope] Re: How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Lennart Regebro
On 5/19/05, yuppie <[EMAIL PROTECTED]> wrote:
> Well. This is not *the* generic method, its one of two patterns which
> have both their pros and cons. See the File Library example for doing it
> the other way round, calling the template at the end of the script:
> 
> http://www.plope.com/Books/2_7Edition/SimpleExamples.stx#1-8

Sure, that works too, especially if you want the same template for
several scripts. While the other method works better for several
templates and one script. :)
-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread yuppie
Lennart Regebro wrote:
Well, the generic method is to create a script that you call in the
start of you ZPT that returns a dictionary with all the data to be
displayed.  This can also be the same script that actually does the
deletion.
http://blogs.nuxeo.com/sections/blogs/lennart_regebro/2005_04_19_python_statement/
Well. This is not *the* generic method, its one of two patterns which 
have both their pros and cons. See the File Library example for doing it 
the other way round, calling the template at the end of the script:

http://www.plope.com/Books/2_7Edition/SimpleExamples.stx#1-8
Cheers, Yuppie
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )