コード例 #1
0
 def _onDelete(self, entity):
   receivers = [entity.scope]
   newsfeed_logic.addToFeed(entity, receivers, "deleted")
コード例 #2
0
 def _onCreate(self, entity):
   self.getScope(entity)
   receivers = [entity.scope]
   subscription_logic.updateSubscribersForEntity(entity)
   newsfeed_logic.addToFeed(entity, receivers, "created")
コード例 #3
0
 def _onUpdate(self, entity):
   self.getScope(entity) # for older entities
   receivers = [entity.scope]
   subscription_logic.updateSubscribersForEntity(entity)
   newsfeed_logic.addToFeed(entity, receivers, "updated")
コード例 #4
0
 def _onCreate(self, entity):
   self.getScope(entity)
   receivers = [entity.scope]
   newsfeed_logic.addToFeed(entity, receivers, "created")