One possibility is to use a lock file. Look for portalocker.py in the gluon 
directory and the Session class which uses portalocker.py for use. Needing this 
functionality should be rare, multiple requests run on different threads so no 
collisions in the controller should occur. The database should keep multiple 
requests separated. If I could ask what requires this maybe there is a better 
way than a lock file or a way to avoid the problem. Using a lock file can lead 
to serious contention depending on how many users and the duration of the lock.

Ron

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to