jp (common): publish is now a boolean

This commit is contained in:
Goffi 2019-04-10 22:15:29 +02:00
commit 5dda9f6857

View file

@ -270,7 +270,7 @@ class BaseEdit(object):
)
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(