def _onDelete(self, entity): receivers = [entity.scope] newsfeed_logic.addToFeed(entity, receivers, "deleted")
def _onCreate(self, entity): self.getScope(entity) receivers = [entity.scope] subscription_logic.updateSubscribersForEntity(entity) newsfeed_logic.addToFeed(entity, receivers, "created")
def _onUpdate(self, entity): self.getScope(entity) # for older entities receivers = [entity.scope] subscription_logic.updateSubscribersForEntity(entity) newsfeed_logic.addToFeed(entity, receivers, "updated")
def _onCreate(self, entity): self.getScope(entity) receivers = [entity.scope] newsfeed_logic.addToFeed(entity, receivers, "created")