<div dir="ltr"><br><div class="gmail_quote">2008/9/13 Andrew Bennetts <span dir="ltr"><<a href="mailto:andrew@canonical.com">andrew@canonical.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="Ih2E3d">Marius Kruger wrote:<br>
> Hi,<br>
> I'm trying to get hooks called on the server when commits come in over<br>
> bzr+http://<br>
> I have tried a lot of things and got it working over bzr://<br>
><br>
> I'm using this fcgi script:<br>
</div>[...]<br>
<div class="Ih2E3d">><br>
> 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> root='/var/lib/gforge/bzrroot',<br><div dir="ltr"> prefix='/bzr/',<br> path_var='REQUEST_URI',<br>
readonly=False,<br> <b> load_plugins=True,<br> logfile='/var/log/bazaar.fcgi.log',</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 "bzr"` in my apache log. <br>
<br>I'll probably hack a patch together for this soon, if it sounds ok to you.<br><br>-- <br>regards<br>Marius<br><br><><<br><a href="http://amanica.blogspot.com/">http://amanica.blogspot.com/</a><br><br>
</div>