def PublishSubscription(self, OwnerName, SubscriptionName, Owner): sub = CFxSubscription(OwnerName, SubscriptionName) sub.Owner = Owner if sub.OwnerName not in self.Subscriptions: self.Subscriptions[sub.OwnerName] = [] self.Subscriptions[sub.OwnerName].append(sub) return sub
def publish_subscription(self, owner_name, subscription_name, owner): sub = CFxSubscription(owner_name, subscription_name) sub._owner = owner if sub._owner_name not in self._subscriptions: self._subscriptions[sub._owner_name] = [] self._subscriptions[sub._owner_name].append(sub) return sub