Discussion:
VIFF reactor
Marcel Keller
2010-04-29 14:24:38 UTC
Permalink
Hi Joel,
Is it still necessary to run `viff.reactor.install()` as described 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
Joel Pettersson
2010-04-29 13:25:57 UTC
Permalink
Hi,

Is it still necessary to run `viff.reactor.install()` as described in
<http://www.mail-archive.com/viff-***@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 will, by the way, be available in #viff @ Freenode most of my time
the next couple of days.

Best regards,
Joel Pettersson
Martin Geisler
2010-04-29 14:33:55 UTC
Permalink
Joel Pettersson <***@kth.se> writes:

Hi everybody,
Is it still necessary to run `viff.reactor.install()` as described 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! :-)
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/
Joel Pettersson
2010-04-29 15:06:18 UTC
Permalink
Post by Marcel Keller
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?
- 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-***@viff.dk
h

Loading...