Mercurial > libervia-backend
comparison sat/tools/common/files_utils.py @ 3306:3af0909629a2
common (template): better json dumping:
default method is set for json dumping (the `tojson` filter), if the object has a `json`
attribute, it will be called, otherwise it is replaced by None, this avoids crash when
rendering the template.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jun 2020 15:45:57 +0200 |
parents | 5ba0b1cdd45b |
children | e86b71b1aa31 |
comparison
equal
deleted
inserted
replaced
3305:04a7d77ed86f | 3306:3af0909629a2 |
---|