Re: [viff-devel] VIFF reactor
Marcel Keller mkeller at cs.au.dk writes: Hi Joel, Is it still necessary to run `viff.reactor.install()` as described in http://www.mail-archive.com/viff-devel at viff.dk/msg00657.html in order to utilize the VIFF reactor? - If so, would it be possible to fix that? I don't see a good way to that, for the following reasons: - To change the default reactor properly, it would be necessary to change the Twisted source code. That is not an elegant way. - The VIFF reactor could be installed in the runtime module. However, if it would be done that way, viff.runtime would have to be imported before importing the reactor, which is a possible source of errors. Furthermore, that would prevent other reactors like the GtkReactor from being used. - If not, then the example apps would need to be updated accordingly. As far as I can see, all example apps are updated in VIFF 1.0. Best regards, Marcel Hi Marcel, I see. Thanks for your quick reply! And yes, since it really is necessary to run `viff.reactor.install()` manually before `from twisted.internet import reactor` you are absolutely right — all example apps are up-to-date. Best regards, Joel Pettersson ___ viff-devel mailing list (http://viff.dk/) viff-devel@viff.dk http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk
Re: [viff-devel] VIFF reactor
Hi Joel, Is it still necessary to run `viff.reactor.install()` as described in http://www.mail-archive.com/viff-devel@viff.dk/msg00657.html in order to utilize the VIFF reactor? - If so, would it be possible to fix that? I don't see a good way to that, for the following reasons: - To change the default reactor properly, it would be necessary to change the Twisted source code. That is not an elegant way. - The VIFF reactor could be installed in the runtime module. However, if it would be done that way, viff.runtime would have to be imported before importing the reactor, which is a possible source of errors. Furthermore, that would prevent other reactors like the GtkReactor from being used. - If not, then the example apps would need to be updated accordingly. As far as I can see, all example apps are updated in VIFF 1.0. Best regards, Marcel ___ viff-devel mailing list (http://viff.dk/) viff-devel@viff.dk http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk
Re: [viff-devel] VIFF reactor
Joel Pettersson joel...@kth.se writes: Hi everybody, Is it still necessary to run `viff.reactor.install()` as described in http://www.mail-archive.com/viff-devel@viff.dk/msg00657.html in order to utilize the VIFF reactor? - If so, would it be possible to fix that? - If not, then the example apps would need to be updated accordingly. I see Marcel answered this with lightning speed, cool! :-) I will, by the way, be available in #viff @ Freenode most of my time the next couple of days. I'll like to add that it's very easy to get online: http://webchat.freenode.net/ -- Martin Geisler aragost Trifork Professional Mercurial support http://aragost.com/mercurial/ ___ viff-devel mailing list (http://viff.dk/) viff-devel@viff.dk http://lists.viff.dk/listinfo.cgi/viff-devel-viff.dk