<br><br><div class="gmail_quote">2010/9/17 Christophe Combelles <span dir="ltr">&lt;<a href="mailto:ccomb@free.fr">ccomb@free.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
thanks, it seems very close to what I&#39;ve tried.<br>
<br>
Le 16/09/2010 19:55, Ilshad Khabibullin a écrit :<br>
<div class="im">&gt; I allow myself to describe my experience. Here&#39;s how I&#39;m doing now:<br>
&gt;<br>
&gt; 1) all 3rd registrations - in src/myproject/require.zcml, instead of<br>
&gt; etc/site.zcml<br>
<br>
</div>ok<br>
<div class="im"><br>
&gt; 2) in etc/ directory - 2 configuration files: deploy.zcml and debug.zcml<br>
&gt; instead of site.zcml. Examples: <a href="http://paste.lisp.org/+2GF8" target="_blank">http://paste.lisp.org/+2GF8</a>.<br>
<br>
</div>ok,<br>
I suppose those are called from some zope.conf and zope-debug.conf files,<br>
themselves called from deploy.ini and debug.ini files.<br>
<br>
We can also use zcml:condition=&quot;have devmode&quot; in the directives.<br>
I was using it to enable the apidoc in dev/debug mode.<br>
<div class="im"><br>
&gt; 3) src/configure.zcml contains, first, &lt;include file=&quot;require.zcml&quot; /&gt;,<br>
&gt; and second &lt;include package=&quot;...&quot; /&gt; for nested packages of my project,<br>
&gt; and, sometimes, custom directives.<br>
<br>
</div>ok<br>
<div class="im"><br>
&gt; 4) in etc/ directory I prefer to put debug.conf, deploy.conf and zeo.conf.<br>
<br>
</div>do you mean paste config files debug.ini, deploy.ini and zeo.ini ?<br>
<div class="im"><br>
&gt; 5) in tests/ftesting.zcml: &lt;include package=&quot;myproject&quot; /&gt; (i.e.<br>
&gt; src/myproject/configure.zcml) and custom directives for set up test<br>
&gt; environment.<br>
<br>
</div>Where is located this file, at the root of the project, or in the<br>
src/myproject/tests ?<br>
<br></blockquote><div>sorry, in src/myproject/tests/, of course<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
If this is located in the root, how do you use this file from the tests?<br>
<div class="im"><br>
&gt;<br>
&gt; I use exact this structure of zcml files in production BB rpojects right<br>
&gt; now and I find it pretty convenient.<br>
&gt;<br>
&gt; Summary, I always need, in any project (and any server-side project is<br>
&gt; not &quot;hello world&quot;, yes?) different configuration for developer&#39;s sandbox<br>
&gt; and for staging server and for production server, and I always need zeo<br>
&gt; client mode, and of course, zcml includes for 3rd packages always the<br>
&gt; same (or about) for the functional tests.<br>
<br>
</div>Yes, it would be nice to add a sample zeo config as well...<br>
<font color="#888888"><br>
Christophe<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>