view libervia/ @ 1389:ac4173fff71d

pages (lists/view): add `list_type` to `template_data`: when a service/node is used for the first time, schema is retrieved, and `list_type` is put in cache and used in template. This allows the template to have specialised views depending on the kind of list user is opening.
author Goffi <>
date Sat, 27 Feb 2021 20:58:22 +0100
parents 3b844004c0b4
children ac2374c92294
line wrap: on
line source

import os.path

version_file = os.path.join(os.path.dirname(__file__), "VERSION")
    with open(version_file) as f:
        __version__ =
except NotImplementedError:
    # pyjamas workaround
    __version__ = "0.7.0D"