Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / managers.py @ 7856a37a

History | View | Annotate | Download (3.5 kB)

# Date Author Comment
ea1e5d9f 02/14/2013 04:28 pm Giorgos Korfiatis

Make ForUpdateManager thread-safe

The manager held a global flag `_for_update' on a single manager object,
which could be read or set by multiple threads.

select_for_update() is now provided by a subclass of QuerySet.
It must be used as the last modifier of a query set,...

ee45eb81 12/18/2012 07:16 pm Giorgos Korfiatis

Keep only one application in Project; the membership takes care
of tracking updates. Define set_sync(); state stays PENDING
if project.application has changed in the meantime.