コード例 #1
0
    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'
コード例 #2
0
 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'
コード例 #3
0
 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)
コード例 #4
0
 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)
コード例 #5
0
 def update(self):
     super(FBInitViewlet, self).update()
     self.settings = json.dumps(self._getSettings())
コード例 #6
0
 def attachment(self):
     data_provider = IFeedFormDataProvider(self.context)
     return json.dumps(data_provider.getAttachment())
コード例 #7
0
 def update(self):
     super(FBInitViewlet, self).update()
     self.settings = json.dumps(self._getSettings())