<br><br><div class="gmail_quote">2010/9/17 Christophe Combelles <span dir="ltr"><<a href="mailto:ccomb@free.fr">ccomb@free.fr</a>></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've tried.<br>
<br>
Le 16/09/2010 19:55, Ilshad Khabibullin a écrit :<br>
<div class="im">> I allow myself to describe my experience. Here's how I'm doing now:<br>
><br>
> 1) all 3rd registrations - in src/myproject/require.zcml, instead of<br>
> etc/site.zcml<br>
<br>
</div>ok<br>
<div class="im"><br>
> 2) in etc/ directory - 2 configuration files: deploy.zcml and debug.zcml<br>
> 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="have devmode" in the directives.<br>
I was using it to enable the apidoc in dev/debug mode.<br>
<div class="im"><br>
> 3) src/configure.zcml contains, first, <include file="require.zcml" />,<br>
> and second <include package="..." /> for nested packages of my project,<br>
> and, sometimes, custom directives.<br>
<br>
</div>ok<br>
<div class="im"><br>
> 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>
> 5) in tests/ftesting.zcml: <include package="myproject" /> (i.e.<br>
> src/myproject/configure.zcml) and custom directives for set up test<br>
> 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>
><br>
> I use exact this structure of zcml files in production BB rpojects right<br>
> now and I find it pretty convenient.<br>
><br>
> Summary, I always need, in any project (and any server-side project is<br>
> not "hello world", yes?) different configuration for developer's sandbox<br>
> and for staging server and for production server, and I always need zeo<br>
> client mode, and of course, zcml includes for 3rd packages always the<br>
> 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>