Yet another way.<br><br>If BB use only WSGI, and use several different .ini files for `paster serve` then it can be easier to define in etc/ several .conf files. I.e. not zope.conf, but dev.conf, deploy.conf, zeo.conf. And each .conf file has `site_definition` to different site.zcml (then it is not site.zcml - but dev.zcml, deploy.zcml, and etc).<br>
<br>Thus we have several .conf files and several .zcml file (from paster template - just with corresponding names for simplicity).<br><br>Thus, to switch from development to production - no need to run bin/buildout -s specific.cfg.<br>
<br>Thus, drop `templates`.<br><br><div class="gmail_quote">2010/4/23 Baiju M <span dir="ltr">&lt;<a href="mailto:baiju.m.mail@gmail.com">baiju.m.mail@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, Apr 23, 2010 at 4:22 PM, Christophe Combelles &lt;<a href="mailto:ccomb@free.fr">ccomb@free.fr</a>&gt; wrote:<br>
&gt; Ilshad Khabibullin a écrit :<br>
&gt;&gt; -1<br>
&gt;&gt;<br>
&gt;&gt; I think it is good to use /tempates.<br>
&gt;&gt; Otherwise - we need use recipe zc.zope3recipe and write zcml in<br>
&gt;&gt; buildout.cfg.<br>
&gt;&gt;<br>
&gt;&gt; Why?<br>
&gt;&gt;<br>
&gt;&gt; Note, generally, we need use different size.zcml and zope.conf in<br>
&gt;&gt; different installations: development and production. Even we use 3-4<br>
&gt;&gt; variants (production, staging site, developer).<br>
&gt;<br>
&gt; I&#39;m ok for keeping the templating but we must make it useful. It currently is<br>
&gt; not.  I have a suggestion for using it in my next message.<br>
<br>
</div>Ok, we will keep it as such for now.  At least it shows a &quot;usage<br>
pattern&quot; for templates.<br>
<br>
Regards,<br>
<font color="#888888">Baiju M<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
bluebream mailing list<br>
<a href="mailto:bluebream@zope.org">bluebream@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/bluebream" target="_blank">https://mail.zope.org/mailman/listinfo/bluebream</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ilshad R. Khabibullin<br><a href="http://astoon.zwiki.org">http://astoon.zwiki.org</a><br>+7 922 600 56 06<br>