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)
def pre_status_process(self, status, params): if 'comment' in params: self.context.status_comment = params.get('comment') logger.debug(self.context.status_comment) if 'change_date' in params and params['change_date'] in ('1', 1): logger.debug("Forcing the document's date !!!") self.context.date = datetime.date.today() return StatusView.pre_status_process(self, status, params)
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)
def post_status_process(self, status, params): """ Launch post status process functions :param str status: The new status that should be affected :param dict params: The params that were transmitted by the associated State's callback """ logger.debug("post_status_process") logger.debug(self.context.status_comment) # Record a task status change self.context.status_date = datetime.date.today() status_record = TaskStatus( task_id=self.context.id, status_code=status, status_person_id=self.request.user.id, status_comment=self.context.status_comment ) self.context.statuses.append(status_record) self.request.dbsession.merge(self.context) StatusView.post_status_process(self, status, params)