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

Type Lockable

object --+
         |
        Lockable

Known Subclasses:
Device, DeviceComponent

Method Summary
  getNextLockableParent(self, obj)
  isLockedFromDeletion(self)
  isLockedFromUpdates(self)
  isUnlocked(self)
  lockFromDeletion(self, sendEventWhenBlocked, REQUEST)
Lock object from being deleted
  lockFromUpdates(self, sendEventWhenBlocked, REQUEST)
Lock object from being deleted or updated
  lockStatus(self)
if self.modelerLock == DELETE_LOCKED:...
  lockWarning(self)
  sendEventWhenBlocked(self)
  setSendEventWhenBlockedFlag(self)
  unlock(self, REQUEST)
Unlock object
  unsetSendEventWhenBlockedFlag(self)
Inherited from object: __init__, __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variable Summary
int modelerLock = 0                                                                     
bool sendEventWhenBlockedFlag = False

Method Details

lockFromDeletion(self, sendEventWhenBlocked=None, REQUEST=None)

Lock object from being deleted

lockFromUpdates(self, sendEventWhenBlocked=None, REQUEST=None)

Lock object from being deleted or updated

lockStatus(self)

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"

unlock(self, REQUEST=None)

Unlock object

Class Variable Details

modelerLock

Type:
int
Value:
0                                                                     

sendEventWhenBlockedFlag

Type:
bool
Value:
False                                                                  

Generated by Epydoc 2.1 on Thu Aug 16 09:55:12 2007 http://epydoc.sf.net