Hi all! We have [is_gae] variable in [gluon/languages.py] to avoid writting dicts in Google AppEngine. All we need is to make such replacement in [gluon/languages.py]:
replace 38 is_gae = settings.global_settings.web2py_runtime_gae with 38 is_gae = settings.global_settings.web2py_runtime_gae or setings.global_settings.languages_readonly # or use better varname :) With the best regards, Vladyslav Kozlovskyy (Ukraine) У пн, 2012-10-15 у 13:51 -0300, Vinicius Assef пише: > I'd like to have a global (app wide) option to not override my language files. > > > > On Mon, Oct 15, 2012 at 1:47 PM, Fran <francisb...@gmail.com> wrote: > > On my Production servers I don't like the languages/* files to be writable - > > I prefer to keep these files part of the application's version control & > > translated outside the application. > > > > Currently this leads to a performance overhead as there are many times that > > write_dict() is called and so gluon attempts to update the file & throws an > > Exception. > > > > I'd ideally like to have a setting to not update these files at all, so just > > return inside this function (as is currently done if __corrupted__ in > > contents). > > The right place for this would appear to be request.global_settings > > > > How does this sound to people? > > > > If we agree on a strategy, I can write the code, as this doesn't seem hard > > to implement. > > > > Best Wishes, > > Fran. > > > > -- > > > > > > > --