Hi,how do you synchronize a method (or model field access) in Django?It doesn't work:from multiprocessing import Lockchange_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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment