comparison rhodecode/controllers/changeset.py @ 2286:9265958e33bb codereview

Show changes of status inside comments - comments that change status are now associated with status object, and showed in comments blocks
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 17 May 2012 00:02:52 +0200
parents 76947224bf27
children e5c0f201ca0b
comparison
equal deleted inserted replaced
2285:393c53cbd0d8 2286:9265958e33bb
379 379
380 # get status if set ! 380 # get status if set !
381 status = request.POST.get('changeset_status') 381 status = request.POST.get('changeset_status')
382 if status and request.POST.get('change_changeset_status'): 382 if status and request.POST.get('change_changeset_status'):
383 ChangesetStatusModel().set_status( 383 ChangesetStatusModel().set_status(
384 c.rhodecode_db_repo.repo_id, 384 c.rhodecode_db_repo.repo_id,
385 revision, 385 revision,
386 status, 386 status,
387 c.rhodecode_user.user_id, 387 c.rhodecode_user.user_id,
388 comm,
388 ) 389 )
389 390
390 Session.commit() 391 Session.commit()
391 if not request.environ.get('HTTP_X_PARTIAL_XHR'): 392 if not request.environ.get('HTTP_X_PARTIAL_XHR'):
392 return redirect(h.url('changeset_home', repo_name=repo_name, 393 return redirect(h.url('changeset_home', repo_name=repo_name,