:date: 2017-01-13 ======================== Friday, January 13, 2017 ======================== After our yesterday's work session, There is more to do for :ticket:`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 :mod:`lino.core.requests` and :mod:`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 :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`. - :meth:`goto_instance` now implemented by the renderer, not by the request. - :mod:`lino_xl.lib.countries` now depends on :mod:`lino_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 :meth:`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)