Friday, January 13, 2017¶
After our yesterday’s work session,
There is more to do for #1378. The [ticket 1] links in notifications are now correctly stored as memo markup (and no longer as plain html), but I now need to write a subclass of HtmlRenderer which renders them as ExtJS permalinks (and not as javascript calls) because otherwise they won’t work when clicked in an email.
This caused quite an internal avalanche of code changes in
lino.core.requests
and lino.core.renderer
.
A first series of commits does not yet change anything, it is just a reorganisation of code in order to prepare my coup. There is danger that these changes introduced bugs which are not covered by the test suite (but Wer nichts wagt, der nichts gewinnt). Here is an uncomplete list of these changes:
new class
lino.core.renderer.JsRenderer
contains things needed by both extjs3 and extjs6 renderer. The extjs6 renderer is a modified copy of the extjs3 renderer, and this will reduce the amount of duplicated code.New method obj2url.
goto_instance()
now implemented by the renderer, not by the request.lino_xl.lib.countries
now depends onlino_xl.lib.xl
(that’s why belref didn’t translate strings like “Countries” or “Places” to German and French.
List of changes:
2017-01-13 13:57 in lino: 1a04668 (http://luc.lino-framework.org/blog/2017/0113.html)
2017-01-13 13:57 in lino_xl: fa66940 (http://luc.lino-framework.org/blog/2017/0113.html)
2017-01-13 13:57 in lino_noi: 4c0eccc (http://luc.lino-framework.org/blog/2017/0113.html)
2017-01-13 13:57 in lino_cosi: b89165a (http://luc.lino-framework.org/blog/2017/0113.html)
2017-01-13 13:57 in lino_voga: fa0f1ea (http://luc.lino-framework.org/blog/2017/0113.html)
2017-01-13 13:58 in lino_extjs6: f06f596 (Merge branch ‘master’ of git+ssh://github.com/lino-framework/extjs6)
2017-01-13 13:58 in lino_extjs6: 2210e7a (http://luc.lino-framework.org/blog/2017/0113.html)
2017-01-13 14:03 in lino_book: b41b721 (http://luc.lino-framework.org/blog/2017/0113.html)
2017-01-13 14:04 in lino_welfare: f105455 (http://luc.lino-framework.org/blog/2017/0113.html)
I then started to do what I actually wanted to do: get the links right
for emails. Yet another series of dangerous code changes. For
example, I changed signature of
lino.core.rednerer.Renderer.get_detail_url()
: no longer an
obj, but the actor and the pk. Here are these changes:
2017-01-13 19:23 in lino: b531615 (http://luc.lino-framework.org/blog/2017/0113.html)
2017-01-13 19:23 in lino_noi: 2d12194 (http://luc.lino-framework.org/blog/2017/0113.html)
2017-01-13 19:23 in lino_cosi: 83f6b03 (http://luc.lino-framework.org/blog/2017/0113.html)
2017-01-13 19:23 in lino_extjs6: f7894ab (http://luc.lino-framework.org/blog/2017/0113.html)