示例#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")