Mercurial > libervia-backend
diff sat_frontends/jp/common.py @ 2905:d9491cb81726
jp (common): `publish` is now a boolean
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 10 Apr 2019 22:15:29 +0200 |
parents | 003b8b4b56a7 |
children | ab2696e34d29 |
line wrap: on
line diff
--- a/sat_frontends/jp/common.py Wed Apr 10 21:07:47 2019 +0200 +++ b/sat_frontends/jp/common.py Wed Apr 10 22:15:29 2019 +0200 @@ -270,7 +270,7 @@ ) self.host.quit(C.EXIT_DATA_ERROR) - if self.use_metadata and not C.bool(metadata.get("publish", "true")): + if self.use_metadata and not metadata.get("publish", True): self.disp( u'Publication blocked by "publish" key in metadata, cancelling edition.\n\n' + "temporary file path:\t{content_path}\nmetadata file path:\t{meta_path}".format(