def flash(self, msg): self.marketing_message = msg self.save() jug.publish('msfm:marketing:%s' % self.id, msg)
def update_subscribers(self): jug.publish('msfm:playlist:%s' % self.id, self.playlist().to_json())