Hi,

how do you synchronize a method (or model field access) in Django?

It doesn't work:

from multiprocessing import Lock
change_status_lock = Lock()
def change_status(self, status):
    self.change_status_lock.acquire()
    ...
    self.change_status_lock.release()

Thanks in advance,
Etam.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to