1. Marcin Kuzminski
  2. RhodeCode
  3. Issues

Issues

Issue #884 resolved

Pull Request fails when setting the lang=ja in production.ini

Mitsuhiro Koga
created an issue

Step to reproduce:

  1. Set lang=ja in production.ini
  2. Send pull request

I attach the error message at that time.

And I think maybe, ChangesetStatus.get_status_lbl (status) return the unicode. So, I tried to fix the following, pull request was successful.

--- rhodecode/model/changeset_status.py.orig    2013-06-16 12:58:07.000000000 +0900
+++ rhodecode/model/changeset_status.py 2013-07-28 01:54:14.749402573 +0900
@@ -132,7 +132,7 @@
         if not comment:
             from rhodecode.model.comment import ChangesetCommentsModel
             comment = ChangesetCommentsModel().create(
-                text='Auto status change to %s' % (ChangesetStatus.get_status_lbl(status)),
+                text=u'Auto status change to %s' % (ChangesetStatus.get_status_lbl(status)),
                 repo=repo,
                 user=user,
                 pull_request=pull_request,

Comments (3)

  1. Log in to comment