Browse Source

getEventName->getEvent

Darren Ranalli 20 years ago
parent
commit
c4f25f80a6

+ 2 - 2
direct/src/showbase/BulletinBoard.py

@@ -16,7 +16,7 @@ class BulletinBoard:
     def has(self, postName):
         return postName in self._dict
 
-    def getEventName(self, postName):
+    def getEvent(self, postName):
         return 'bboard-%s' % postName
 
     def post(self, postName, value=None):
@@ -30,7 +30,7 @@ class BulletinBoard:
         if postName in self._dict:
             BulletinBoard.notify.info('update: posting %s' % (postName))
         self._dict[postName] = value
-        messenger.send(self.getEventName(postName))
+        messenger.send(self.getEvent(postName))
         
     def remove(self, postName):
         if postName in self._dict:

+ 1 - 1
direct/src/showbase/BulletinBoardWatcher.py

@@ -18,7 +18,7 @@ class BulletinBoardWatcher(DirectObject.DirectObject):
         self.waitingOn = {}
         for name in postNames:
             if not bboard.has(name):
-                eventName = bboard.getEventName(name)
+                eventName = bboard.getEvent(name)
                 self.acceptOnce(eventName, Functor(self.handlePost, eventName))
                 self.waitingOn[eventName] = None
         self.checkDone()