+1 for good notes.<br><br><div class="gmail_quote">2010/9/21 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="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Mon, Sep 20, 2010 at 2:42 PM, Christophe Combelles &lt;<a href="mailto:ccomb@free.fr">ccomb@free.fr</a>&gt; wrote:<br>
&gt; Le 20/09/2010 00:04, Ilshad Khabibullin a écrit :<br>
&gt;&gt; (I wrote about .zcml files)<br>
&gt;&gt;<br>
&gt;&gt; 2010/9/20 Ilshad Khabibullin &lt;<a href="http://astoon.net" target="_blank">astoon.net</a> &lt;<a href="http://astoon.net" target="_blank">http://astoon.net</a>&gt;@<a href="http://gmail.com" target="_blank">gmail.com</a><br>

&gt;&gt; &lt;<a href="http://gmail.com" target="_blank">http://gmail.com</a>&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;     Now we have (in trunk) dublication in etc/ - two absolutely<br>
&gt;&gt;     identical files. Let&#39;s discuss about it.<br>
&gt;&gt;<br>
&gt;&gt;     When I described how I doing, really, I&#39;m doing two different files,<br>
&gt;&gt;     and it helps me to do not create too complex zcml with many<br>
&gt;&gt;     &quot;conditions&quot;. This just conveniently.<br>
&gt;&gt;<br>
&gt;&gt;     For example, it can be more these files (3 instead of 2) when we<br>
&gt;&gt;     need fully tested staging site, and etc. Also, &quot;manager&quot; principal<br>
&gt;&gt;     turned on, often, in deploy mode to setup site in first time. Also,<br>
&gt;&gt;     deploy and debug modes have different ports, usually. And all this -<br>
&gt;&gt;     under version control systems, let&#39;s do not forget about this.<br>
&gt;&gt;<br>
&gt;&gt;     But I do not insist that it must be in the standard template. Maybe<br>
&gt;&gt;     it&#39;s not everyone like that. And in any case we should not allow<br>
&gt;&gt;     dublication in this very important package, because dublication<br>
&gt;&gt;     looks ugly anyway...<br>
&gt;<br>
&gt; we have several options:<br>
&gt;<br>
&gt; - &lt;include deploy.zcml&gt; from debug.zcml to avoid duplication<br>
&gt; - or add a note in the debug.zcml saying this file can be customized for debug<br>
&gt; (and maybe a minimal customization)<br>
&gt; - or both<br>
&gt; - or remove the debug file and keep just a site.zcml<br>
&gt;<br>
&gt; btw, for point 2, we could remove the admin manager from the deploy.zcml, and<br>
&gt; just keep it in debug. I don&#39;t like having the manager password for deployment<br>
&gt; in a versionned file because people can forget to remove it.<br>
&gt; That would mean we could authenticate as global manager only in development mode.<br>
<br>
</div></div>+1 for second approach (add a note in the debug.zcml saying this file<br>
can be customized for debug)<br>
<br>
+0 for removing global manager principal from deploy.zcml<br>
<br>
The basic idea for two ZCML files is to show the best practice so that<br>
a beginner can<br>
organize their code in a better way.  So, even if the content is same,<br>
that&#39;s fine.<br>
But adding a comment in each file would help the user to understand<br>
the reasoning.<br>
<div class="im"><br>
Regards,<br>
Baiju M<br>
_______________________________________________<br>
bluebream mailing list<br>
<a href="mailto:bluebream@zope.org">bluebream@zope.org</a><br>
</div><div><div></div><div class="h5"><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>