コード例 #1
0
ファイル: CFx.py プロジェクト: saumitraaditya/controllers
 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
コード例 #2
0
 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
コード例 #3
0
ファイル: CFx.py プロジェクト: saumitraaditya/xmppSignal
 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