Locks this session against other processes/threads. This is automatic when load/save is called. ***use with caution*** and always with a corresponding 'unlock' inside a "finally:" block, as a stray lock typically cannot be unlocked without shutting down the
(self)
| 301 | # the original mod_python code i was ripping off but they really |
| 302 | # have no use here. |
| 303 | def lock(self): |
| 304 | """Locks this session against other processes/threads. This is |
| 305 | automatic when load/save is called. |
| 306 | |
| 307 | ***use with caution*** and always with a corresponding 'unlock' |
| 308 | inside a "finally:" block, as a stray lock typically cannot be |
| 309 | unlocked without shutting down the whole application. |
| 310 | |
| 311 | """ |
| 312 | self.namespace.acquire_write_lock() |
| 313 | |
| 314 | def unlock(self): |
| 315 | """Unlocks this session against other processes/threads. This |
no test coverage detected