added getDisableEvent()

This commit is contained in:
Darren Ranalli 2007-10-03 22:44:41 +00:00
parent 7c9997118c
commit 6d2fa2fcb2

View File

@ -185,6 +185,9 @@ class DistributedObject(DistributedObjectBase, EnforcesCalldowns):
self.disableAndAnnounce() self.disableAndAnnounce()
self.delete() self.delete()
def getDisableEvent(self):
return self.uniqueName("disable")
def disableAndAnnounce(self): def disableAndAnnounce(self):
""" """
Inheritors should *not* redefine this function. Inheritors should *not* redefine this function.
@ -197,7 +200,7 @@ class DistributedObject(DistributedObjectBase, EnforcesCalldowns):
# hidden). # hidden).
if self.activeState != ESDisabled: if self.activeState != ESDisabled:
self.activeState = ESDisabling self.activeState = ESDisabling
messenger.send(self.uniqueName("disable")) messenger.send(self.getDisableEvent())
self.disable() self.disable()
@calldownEnforced @calldownEnforced