comparison frontends/src/jp/cmd_blog.py @ 1888:7b9cdde29d8b

jp (blog/edit): added a confirmation message when blog item has been successfuly published
author Goffi <goffi@goffi.org>
date Sat, 05 Mar 2016 20:19:40 +0100
parents 16527dd5a81b
children 4f252b72b193
comparison
equal deleted inserted replaced
1887:16527dd5a81b 1888:7b9cdde29d8b
280 self.host.bridge.mbSend('', '', mb_data, self.profile) 280 self.host.bridge.mbSend('', '', mb_data, self.profile)
281 except Exception as e: 281 except Exception as e:
282 self.disp(u"Error while sending your blog, the temporary files have been kept at {content_path} and {meta_path}: {reason}".format( 282 self.disp(u"Error while sending your blog, the temporary files have been kept at {content_path} and {meta_path}: {reason}".format(
283 content_path=content_file_path, meta_path=meta_file_path, reason=e), error=True) 283 content_path=content_file_path, meta_path=meta_file_path, reason=e), error=True)
284 self.host.quit(1) 284 self.host.quit(1)
285 else:
286 self.disp(u"Blog item published")
285 287
286 os.unlink(content_file_path) 288 os.unlink(content_file_path)
287 os.unlink(meta_file_path) 289 os.unlink(meta_file_path)
288 290
289 def start(self): 291 def start(self):