accept single post name without list

This commit is contained in:
Darren Ranalli 2004-12-07 04:23:53 +00:00
parent 5f63bf1d22
commit 097ce080d6
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@ class BulletinBoardWatcher(DirectObject.DirectObject):
def __init__(self, name, postNames, callback):
self.notify.debug('__init__: %s, %s, %s' % (name, postNames, callback))
self.name = name
if type(postNames) == type(''):
postNames = [postNames]
self.postNames = postNames
self.callback = callback
self.waitingOn = {}