On Tue, Sep 7, 2010 at 8:29 AM, Thomas Guettler <h...@tbz-pariv.de> wrote: > If you have a daemon that lives forever, I would do it like this (untested > if this does not leave an idle transaction open): > The place where the daemon hangs around if nothing can be done lives must > not use the ORM. If there is something to be done, the daemon calls methods > that use the commit_on_success decorators.
Unfortunately you don't always get to choose what to call with what decorators. For example we have a DBus daemon that acts as an RPC server. Creating a separate function for each select is not really practical :) -- Patryk Zawadzki -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.