Mercurial > kallithea
comparison rhodecode/controllers/files.py @ 3487:b39cb4d4e0be beta
it's safer to user user_id for IMC
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 06 Mar 2013 16:20:28 +0100 |
parents | 4725d097c3c0 |
children | 1b4fc33931d7 |
comparison
equal
deleted
inserted
replaced
3486:2053053e0882 | 3487:b39cb4d4e0be |
---|---|
313 return redirect(url('changeset_home', repo_name=c.repo_name, | 313 return redirect(url('changeset_home', repo_name=c.repo_name, |
314 revision='tip')) | 314 revision='tip')) |
315 try: | 315 try: |
316 self.scm_model.commit_change(repo=c.rhodecode_repo, | 316 self.scm_model.commit_change(repo=c.rhodecode_repo, |
317 repo_name=repo_name, cs=c.cs, | 317 repo_name=repo_name, cs=c.cs, |
318 user=self.rhodecode_user, | 318 user=self.rhodecode_user.user_id, |
319 author=author, message=message, | 319 author=author, message=message, |
320 content=content, f_path=f_path) | 320 content=content, f_path=f_path) |
321 h.flash(_('Successfully committed to %s') % f_path, | 321 h.flash(_('Successfully committed to %s') % f_path, |
322 category='success') | 322 category='success') |
323 | 323 |
376 revision='tip')) | 376 revision='tip')) |
377 | 377 |
378 try: | 378 try: |
379 self.scm_model.create_node(repo=c.rhodecode_repo, | 379 self.scm_model.create_node(repo=c.rhodecode_repo, |
380 repo_name=repo_name, cs=c.cs, | 380 repo_name=repo_name, cs=c.cs, |
381 user=self.rhodecode_user, | 381 user=self.rhodecode_user.user_id, |
382 author=author, message=message, | 382 author=author, message=message, |
383 content=content, f_path=node_path) | 383 content=content, f_path=node_path) |
384 h.flash(_('Successfully committed to %s') % node_path, | 384 h.flash(_('Successfully committed to %s') % node_path, |
385 category='success') | 385 category='success') |
386 except NodeAlreadyExistsError, e: | 386 except NodeAlreadyExistsError, e: |