<div dir="ltr"><br><div class="gmail_quote">2008/9/13 Andrew Bennetts <span dir="ltr">&lt;<a href="mailto:andrew@canonical.com">andrew@canonical.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="Ih2E3d">Marius Kruger wrote:<br>
&gt; Hi,<br>
&gt; I&#39;m trying to get hooks called on the server when commits come in over<br>
&gt; bzr+http://<br>
&gt; I have tried a lot of things and got it working over bzr://<br>
&gt;<br>
&gt; I&#39;m using this fcgi script:<br>
</div>[...]<br>
<div class="Ih2E3d">&gt;<br>
&gt; commits work fine over this, but the hooks does not seem to be called.<br>
<br>
</div>Probably all you need to do is add this to your script:<br>
<div><div></div><div class="Wj3C7c"><br>
from bzrlib.plugin import load_plugins<br>
load_plugins()<br>
</div></div><font color="#888888">-Andrew.<br>
<br>
</font></blockquote></div>I figured that out thanks, I dont know why but I only received your e-mail now. <br><br>do you think we should get `wsgi.make_app()` to do this automatically?<br><br>then we can add additional parameters:<br>
smart_server_app = wsgi.make_app(<br>&nbsp;&nbsp;&nbsp; root=&#39;/var/lib/gforge/bzrroot&#39;,<br><div dir="ltr">&nbsp;&nbsp;&nbsp; prefix=&#39;/bzr/&#39;,<br>&nbsp;&nbsp;&nbsp; path_var=&#39;REQUEST_URI&#39;,<br>

&nbsp;&nbsp;&nbsp; readonly=False,<br>&nbsp;&nbsp;<b>&nbsp; load_plugins=True,<br>&nbsp;&nbsp;&nbsp; logfile=&#39;/var/log/bazaar.fcgi.log&#39;,</b><br>)</div><br>note I also want to get the logging working (properly set, or properly disabled),<br>because I get a lot of `No handlers could be found for logger &quot;bzr&quot;` in my apache log. <br>
<br>I&#39;ll probably hack a patch together for this soon, if it sounds ok to you.<br><br>-- <br>regards<br>Marius<br><br>&lt;&gt;&lt;<br><a href="http://amanica.blogspot.com/">http://amanica.blogspot.com/</a><br><br>
</div>