comparison 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
comparison
equal deleted inserted replaced
2904:5bba8953061e 2905:d9491cb81726
268 ), 268 ),
269 error=True, 269 error=True,
270 ) 270 )
271 self.host.quit(C.EXIT_DATA_ERROR) 271 self.host.quit(C.EXIT_DATA_ERROR)
272 272
273 if self.use_metadata and not C.bool(metadata.get("publish", "true")): 273 if self.use_metadata and not metadata.get("publish", True):
274 self.disp( 274 self.disp(
275 u'Publication blocked by "publish" key in metadata, cancelling edition.\n\n' 275 u'Publication blocked by "publish" key in metadata, cancelling edition.\n\n'
276 + "temporary file path:\t{content_path}\nmetadata file path:\t{meta_path}".format( 276 + "temporary file path:\t{content_path}\nmetadata file path:\t{meta_path}".format(
277 content_path=content_file_path, meta_path=meta_file_path 277 content_path=content_file_path, meta_path=meta_file_path
278 ), 278 ),