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

# Class Lockable

source code

    object --+
             |
            Lockable

Known Subclasses:
  - Device.Device
  - , DeviceComponent.DeviceComponent

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

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

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"