Back to index

plone3  3.1.7
Functions | Variables
plone.app.iterate.lock Namespace Reference

Functions

def lockContext
def unlockContext
def isLocked

Variables

list __all__ = ['lockContext', 'unlockContext', 'isLocked']

Function Documentation

Definition at line 45 of file lock.py.

00045 
00046 def isLocked( context ):
00047     lockable = ILockable(context)
    lockable.locked()

Definition at line 34 of file lock.py.

00034 
00035 def lockContext( context ):
00036     lockable = ILockable(context)
00037     # Be quite forceful - we assume that we won't have gotten here unless
00038     # we had rights to do this.
00039     lockable.clear_locks()
00040     lockable.lock(ITERATE_LOCK, children=True)

Definition at line 41 of file lock.py.

00041 
00042 def unlockContext( context ):
00043     lockable = ILockable(context)
00044     lockable.unlock(ITERATE_LOCK)


Variable Documentation

Definition at line 32 of file lock.py.