Mercurial > libervia-pubsub
comparison idavoll/backend.py @ 39:788114f9b5bc
Added get_supported_affiliations() to BackendService.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Sun, 31 Oct 2004 21:06:32 +0000 |
parents | b65b7ea5c992 |
children | 9685b7e291ef |
comparison
equal
deleted
inserted
replaced
38:c9ddca3cce20 | 39:788114f9b5bc |
---|---|
142 | 142 |
143 def __init__(self): | 143 def __init__(self): |
144 service.MultiService.__init__(self) | 144 service.MultiService.__init__(self) |
145 utility.EventDispatcher.__init__(self) | 145 utility.EventDispatcher.__init__(self) |
146 | 146 |
147 def get_supported_affiliations(self): | |
148 return ['none', 'owner', 'outcast', 'publisher'] | |
149 | |
147 class NotificationService(service.Service): | 150 class NotificationService(service.Service): |
148 | 151 |
149 def register_notifier(self, observerfn, *args, **kwargs): | 152 def register_notifier(self, observerfn, *args, **kwargs): |
150 self.parent.addObserver('//event/pubsub/notify', observerfn, | 153 self.parent.addObserver('//event/pubsub/notify', observerfn, |
151 *args, **kwargs) | 154 *args, **kwargs) |