On Tuesday, May 24, 2011 9:52:58 PM UTC+1, Etam wrote:
>
> 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.
>
>
Synchronise what with what?

"It doesn't work" is utterly useless. What does it do? How does that differ 
from what you were expecting? What errors do you get?
--
DR. 

-- 
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