Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_blog.py @ 2598:0b6adc2672d9
jp (blog/preview): fixed guessSyntaxFromPath call
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Jun 2018 12:02:09 +0200 |
parents | 26edcf3a30eb |
children | 56f94936df1e |
comparison
equal
deleted
inserted
replaced
2597:9446f1ea9eac | 2598:0b6adc2672d9 |
---|---|
559 if self.args.file == 'current': | 559 if self.args.file == 'current': |
560 self.content_file_path = self.getCurrentFile(sat_conf, self.profile) | 560 self.content_file_path = self.getCurrentFile(sat_conf, self.profile) |
561 else: | 561 else: |
562 self.content_file_path = os.path.abspath(self.args.file) | 562 self.content_file_path = os.path.abspath(self.args.file) |
563 | 563 |
564 self.syntax = self.guessSyntaxFromPath(sat_conf, self.content_file_path) | 564 self.syntax = guessSyntaxFromPath(self.host, sat_conf, self.content_file_path) |
565 | 565 |
566 | 566 |
567 # at this point the syntax is converted, we can display the preview | 567 # at this point the syntax is converted, we can display the preview |
568 preview_file = tempfile.NamedTemporaryFile(suffix='.xhtml', delete=False) | 568 preview_file = tempfile.NamedTemporaryFile(suffix='.xhtml', delete=False) |
569 self.preview_file_path = preview_file.name | 569 self.preview_file_path = preview_file.name |