Exemplo n.º 1
0
def handleCancelCheckout(event):
    lockable = ILockable(event.object)
    if lockable.locked():
        # unlock working copy if it was auto-locked, or this will fail
        lockable.clear_locks()
    lock.unlockContext(event.baseline)
    event.baseline.reindexObject(idxs=['review_state'])
Exemplo n.º 2
0
def handleCancelCheckout(event):
    lockable = ILockable(event.object)
    if lockable.locked():
        # unlock working copy if it was auto-locked, or this will fail
        lockable.clear_locks()
    lock.unlockContext(event.baseline)
    event.baseline.reindexObject(idxs=['review_state'])
Exemplo n.º 3
0
def handleWCDeleted(event):
    # may be called multiple times, must be reentrant
    lock.unlockContext(event.baseline)
    # we reindex to force a metadata update
    event.baseline.reindexObject(idxs=['review_state'])
Exemplo n.º 4
0
def handleWCDeleted(event):
    # may be called multiple times, must be reentrant
    lock.unlockContext(event.baseline)
    # we reindex to force a metadata update
    event.baseline.reindexObject(idxs=['review_state'])