Hi ,<br>
Thanking u all...<br><br><div><span class="gmail_quote">On 10/31/05, <b class="gmail_sendername">Philip Kilner</b> <<a href="mailto:phil@xfr.co.uk">phil@xfr.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Ajit,<br><br>ajit mote wrote:<br>> please clear me " can we implement busines logic in ZPT?"<br>><br><br>I would say "no" - you /could/ "sort of" do so, up to a point (by using
<br>Python expressions and possibly calling Python scripts from the ZPT),<br>but it would be a mistake.<br><br>My starting point for TTW development is always a folder with a<br>Script(Python) called "index_html", and a template called "index_pt".
<br>What the template does is wholly controlled by the logic of the script -<br>the last thing the script does is call the template.<br><br>My background was in "old style" ASP before I discovered Zope, and it<br>
took me a while to stop thinking in terms of "template calling script"<br>and think instead of "script calling template". Now that I have that<br>mindset, I find the combination of ZPT for presentation and Python for
<br>logic very natural.<br><br><br>--<br><br>Regards,<br><br>PhilK<br><br>Email: <a href="mailto:phil@xfr.co.uk">phil@xfr.co.uk</a><br>PGP Public key: <a href="http://www.xfr.co.uk">http://www.xfr.co.uk</a><br>Voicemail & Facsimile: 07092 070518
<br><br>"You'll find that one part's sweet and one part's tart:<br>say where the sweetness and the sourness start."<br>- Tony Harrison<br></blockquote></div><br>