Re: turbogears migration: tests: internationalization

2016-05-16 Thread Thomas De Schampheleire
On Mon, May 16, 2016 at 9:30 PM, Thomas De Schampheleire wrote: [..] > FAIL > kallithea/tests/functional/test_pullrequests.py::TestPullrequestsController::()::test_create_with_invalid_reviewer > FAIL >

Re: turbogears migration: tests: internationalization

2016-05-16 Thread Thomas De Schampheleire
Hi Alessandro, On Mon, May 16, 2016 at 10:55 AM, Alessandro Molina wrote: > > On Mon, May 16, 2016 at 9:32 AM, Thomas De Schampheleire > wrote: >> >> ../venv/kallithea-tg/lib/python2.7/site-packages/formencode/api.py:211: >> in

Re: turbogears migration: tests: internationalization

2016-05-16 Thread Alessandro Molina
On Mon, May 16, 2016 at 9:32 AM, Thomas De Schampheleire < patrickdeping...@gmail.com> wrote: > > ../venv/kallithea-tg/lib/python2.7/site-packages/formencode/api.py:211: > in __classinit__ > cls._initialize_docstring() > ../venv/kallithea-tg/lib/python2.7/site-packages/formencode/api.py:302: >

Re: turbogears migration: tests: internationalization

2016-05-16 Thread Thomas De Schampheleire
Hi Alessandro, On Mon, May 16, 2016 at 9:15 AM, Alessandro Molina wrote: > Hi Thomas, > > did you manage to fix this be replacing "from tg.i18n import ugettext as _" > with from "tg.i18n import lazy_ugettext as _" as suggested? I didn't have > time to check but that

Re: turbogears migration: tests: internationalization

2016-05-16 Thread Alessandro Molina
Hi Thomas, did you manage to fix this be replacing "from tg.i18n import ugettext as _" with from "tg.i18n import lazy_ugettext as _" as suggested? I didn't have time to check but that should actually fix the issues you are facing. On Tue, Apr 26, 2016 at 9:34 AM, Alessandro Molina <

Re: turbogears migration: tests: internationalization

2016-04-26 Thread Alessandro Molina
Reason is kallithea/model/forms.py using _() calls ( from tg.i18n import ugettext as _ ) Those translate the text the moment they are called, but as they are used in class attributes they actually get called the moment you import the module. As when you import the module there is no request in