def addClubListener(self, clubDbID, listener, subscriptionType, forceResync = False): if not self._accountProfile.isSynced(): self._accountProfile.resync(forceResync=forceResync) s = self.__subscriptions.setdefault(clubDbID, subscriptions._Subscription(clubDbID, subscriptionType, self)) s.addListener(listener) s.start()
def __setupSubscription(self, clubDbID, subscriptionType): return self.__subscriptions.setdefault(clubDbID, subscriptions._Subscription(clubDbID, subscriptionType, self))