Package Products :: Package ZenModel :: Module Lockable :: Class Lockable |
[hide private]
[frames] | no frames]

# Class Lockable

source code

    object --+
             |
            Lockable

Instance Methods | [hide private]
getNextLockableParent(self, obj=None) | source code
sendEventWhenBlocked(self) | source code
isUnlocked(self) | source code
isLockedFromDeletion(self) | source code
isLockedFromUpdates(self) | source code
setSendEventWhenBlockedFlag(self) | source code
unsetSendEventWhenBlockedFlag(self) | source code
unlock(self, REQUEST=None) Unlock object | source code
lockFromDeletion(self, sendEventWhenBlocked=None, REQUEST=None) Lock object from being deleted | source code
lockFromUpdates(self, sendEventWhenBlocked=None, REQUEST=None) Lock object from being deleted or updated | source code
lockStatus(self) if self.modelerLock == DELETE_LOCKED:... | source code
lockWarning(self) | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__init__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables | [hide private]
| sendEventWhenBlockedFlag = `False`
| modelerLock = `0`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### lockStatus(self) | source code
    if self.modelerLock == DELETE_LOCKED:
        return "Locked from deletion"
    elif self.modelerLock == UPDATE_LOCKED:
        return "Locked from updates and deletion"
    elif isinstance(self.getPrimaryParent(), Lockable):
        return "%s by parent" % self.getPrimaryParent().lockStatus()
    elif self.modelerLock == UNLOCKED:
        return "Unlocked"