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"><<a href="mailto:baiju.m.mail@gmail.com">baiju.m.mail@gmail.com</a>></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 <<a href="mailto:ccomb@free.fr">ccomb@free.fr</a>> wrote:<br>
> Ilshad Khabibullin a écrit :<br>
>> -1<br>
>><br>
>> I think it is good to use /tempates.<br>
>> Otherwise - we need use recipe zc.zope3recipe and write zcml in<br>
>> buildout.cfg.<br>
>><br>
>> Why?<br>
>><br>
>> Note, generally, we need use different size.zcml and zope.conf in<br>
>> different installations: development and production. Even we use 3-4<br>
>> variants (production, staging site, developer).<br>
><br>
> I'm ok for keeping the templating but we must make it useful. It currently is<br>
> 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 "usage<br>
pattern" 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>