def pre_status_process(self, status, params): if 'comment' in params: self.context.communications.append( Communication( content=params.get('comment'), user_id=self.request.user.id, )) return StatusView.pre_status_process(self, status, params)
def pre_status_process(self, status, params): logger.debug("In pre_status_process : %s %s" % (status, type(status))) if 'comment' in params: self.context.communications.append( Communication( content=params.get('comment'), user_id=self.request.user.id, )) return StatusView.pre_status_process(self, status, params)