<p>Thanks for the response,</p><p>So first off, should I keep this dialogue on the hal list or not?</p><p>And second, if I use the CVS version of dbus is that going to break all the dbus bindings, hal, etc. unless I update those too? Right now I am using dbus .23.4-7 . I am just going to try to install the cvs version of dbus anyways .. just tell me what else I should try. <br /> <br />And also I have no idea what you mean by using private connections or that they are bounded. The only resources I have found to learn anything about using hal
with dbus is the hal spec and the python examples in the hal
package.<br /></p><p> </p><p><br /><strong>On Sat Oct 15 3:26 , 'John (J5) Palmieri' sent:<br /><br /></strong></p><blockquote style="border-left: 2px solid rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 5px; padding-right: 0px;">So yes. My understanding of how mod_python works is it keeps everything<br />
in memory which causes the execution to be faster. It also screws with<br />
D-Bus because the bus rules are kept on the bus itself which is out of<br />
process and has no idea when your script goes away because apache never<br />
gives up the unique bus name. What version of dbus are you using? You<br />
can try to remove the signal receiver but to be honest I don't know how<br />
well this works. This is an area that needs a little love in the<br />
bindings. Also you should most likely move to using private connections<br />
though they are not bound yet. It would be great to get feedback from<br />
you and I am wondering if you can run the CVS version of D-Bus. I can<br />
make those changes tomorrow.<br />
<br />
On Fri, 2005-10-14 at 18:32 -0700, <a href="javascript:top.opencompose('ijwilson@laspilitas.com','','','')">ijwilson@laspilitas.com</a> wrote:<br />
> Hello<br />
> <br />
> My test system has:<br />
> <br />
>         hal-0.4.7-26.3<br />
> <br />
>         apache2-mod_python-3.1.3-42<br />
> <br />
>         apache2-2.0.53-9.2<br />
> <br />
> I would like to display in a web application a list of drives that are currently plugged in.<br />
> <br />
> But I am getting this error message: <br />
> <br />
> DBusException: Connection ":1.14" is not allowed
to add more match rules (increase limits in configuration file if
required)<br />
> <br />
> <br />
> <br />
> I add a signal receiver on the bus with this code:<br />
> <br />
> self.bus.add_signal_receiver(self.handleDeviceAddedSignal,<br />
> 'DeviceAdded',<br />
> 'org.freedesktop.Hal.Manager',<br />
> 'org.freedesktop.Hal',<br />
> '/org/freedesktop/Hal/Manager')<br />
> <br />
> When I am done should I remove this signal reciever manually before my<br />
> program is done executing?<br />
> <br />
> Since I am using mod_python will the things I change on the hal bus<br />
> stay across page requests.. ie. maybe I am getting the exception<br />
> because I keep trying to add the same signal reciever over and over.<br />
> <br />
> This probably doesn't make a lot of sense because I kind of don't know<br />
> what I am doing but any help is greatly appreciated. Or maybe some<br />
> more examples besides the ones that come in the hal package.<br />
> <br />
> <br />
> Thanks.<br />
> <br />
> -Ian<br />
> <br />
> <br />
> <br />
> _______________________________________________<br />
> hal mailing list<br />
> <a href="javascript:top.opencompose('hal@lists.freedesktop.org','','','')">hal@lists.freedesktop.org</a><br />
> <a target="_blank" href="parse.pl?redirect=http%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fhal">http://lists.freedesktop.org/mailman/listinfo/hal</a><br />
-- <br />
John (J5) Palmieri <<a href="javascript:top.opencompose('johnp@redhat.com','','','')">johnp@redhat.com</a>><br />
<br />
</blockquote><p> </p><p> </p><BR>