web2py uses portalocker.py look under gluon. There are many examples of use 
such as locking the session file in globals.py

Reply via email to