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