]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
macapp: simplify node startup failure reporting
authorrobk-tahoe <robk-tahoe@allmydata.com>
Thu, 6 Mar 2008 22:09:04 +0000 (15:09 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Thu, 6 Mar 2008 22:09:04 +0000 (15:09 -0700)
commit6177a958d0990e270f2c080f4237a3614dd5e7d3
tree23530c666817d0ce816586d2f2a34b4b10ffcf3a
parentee67d788cde64c9ecdb07d05a7b57fb23d227045
macapp: simplify node startup failure reporting

1. changed the node's exit-on-error behaviour. rather than logging debug and
then delegating to self for _abort_process() instead simply delegate to self
_service_startup_failed(failure) to report failures in the startup deferred
chain. subclasses then have complete control of handling and reporting any
failures in node startup.

2. replace the convoluted wx.PostEvent() glue for posting an event into the
gui thread with the simpler expedient of wx.CallAfter() which is much like
foolscap's eventually() but also thread safe for inducing a call back on the
gui thread.
src/allmydata/gui/macapp.py
src/allmydata/node.py