[ZPT] ZPT - pure content

ajit mote mail2cajit at gmail.com
Mon Oct 31 05:38:13 EST 2005


Hi ,
Thanking u all...

On 10/31/05, Philip Kilner <phil at xfr.co.uk> wrote:
>
> Hi Ajit,
>
> ajit mote wrote:
> > please clear me " can we implement busines logic in ZPT?"
> >
>
> I would say "no" - you /could/ "sort of" do so, up to a point (by using
> Python expressions and possibly calling Python scripts from the ZPT),
> but it would be a mistake.
>
> My starting point for TTW development is always a folder with a
> Script(Python) called "index_html", and a template called "index_pt".
> What the template does is wholly controlled by the logic of the script -
> the last thing the script does is call the template.
>
> My background was in "old style" ASP before I discovered Zope, and it
> took me a while to stop thinking in terms of "template calling script"
> and think instead of "script calling template". Now that I have that
> mindset, I find the combination of ZPT for presentation and Python for
> logic very natural.
>
>
> --
>
> Regards,
>
> PhilK
>
> Email: phil at xfr.co.uk
> PGP Public key: http://www.xfr.co.uk
> Voicemail & Facsimile: 07092 070518
>
> "You'll find that one part's sweet and one part's tart:
> say where the sweetness and the sourness start."
> - Tony Harrison
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zpt/attachments/20051031/aaf81bf7/attachment.htm


More information about the ZPT mailing list