vLent.nl

Practicing software development

Back to work

| Filed under: ,

Thanks to a tweet by @pypi I discovered collective.backtowork, created by Patrick Gerken.

The package, of which version 0.5.2 was released today, is small but can be very useful. It shows a notification when a Zope instance has started.

Back to work example

It currently only works on Linux systems. If you know how to do something similar for OS X or Windows, please fork the code and add the necessary incantations.

Oh, my Zope instance is ready, so I'm back to work...

Comments

F*ck yeah! Can we have the same notification when buildout finishes?
By zupo on
Hey zupo, of course, just run
./bin/buildout ; notify-send "Buildout done"
by using the semicolon instead of && you are guaranteed to get a notification
By do3cc on
Wow. If somebody had told me about notify-send, I would have written this years ago. I so need it. Thanks Patrick!
By Lennart Regebro on
I'll do something for buildout too, I think I can do this with existing recipes.
By Lennart Regebro on
Cool, looking forward to that.
I only wish that notify-send would also work over the net
By do3cc on
@do3cc: I could have figured that out myself... Thanks for the tip! I've added this alias to my .bashrc for now:

alias bnf='bin/buildout -v ; notify-send "Buildout in $(pwd) is done"

@Lennart: a buildout extension would indeed be very nice (especially if it could send different notifications based on the success or failure of the build)! Please keep us informed or let me know if I can contribute.
My alias for the instance itself:
./bin/instance fg || notify-send "Zope startup failed"

Since there are no event handlers for import errors and things.
By do3cc on