def feedform_title(self): """ Returns the title of the feed form for Analytics tracking. """ if self.data.action_title: return json.dumps('User %s' % self.data.action_title) return 'Untitled feed form'
def ui_options(self): options = { 'method': 'stream.publish', 'user_message_prompt': self.user_message_prompt, 'attachment': self.attachment, } action_links = self.action_links if action_links: options['action_links'] = action_links return json.dumps(options)
def update(self): super(FBInitViewlet, self).update() self.settings = json.dumps(self._getSettings())
def attachment(self): data_provider = IFeedFormDataProvider(self.context) return json.dumps(data_provider.getAttachment())