comparison frontends/src/jp/cmd_blog.py @ 1969:5fbe09b9b568

merged main branch
author Goffi <goffi@goffi.org>
date Fri, 24 Jun 2016 22:41:28 +0200
parents 3e168cde7a7d eca59bc4e6c6
children b4a515e36631
comparison
equal deleted inserted replaced
1967:de6faf9be715 1969:5fbe09b9b568
145 """ 145 """
146 # we first try to guess syntax with extension 146 # we first try to guess syntax with extension
147 ext = os.path.splitext(path)[1][1:] # we get extension without the '.' 147 ext = os.path.splitext(path)[1][1:] # we get extension without the '.'
148 if ext: 148 if ext:
149 for k,v in SYNTAX_EXT.iteritems(): 149 for k,v in SYNTAX_EXT.iteritems():
150 if ext == v: 150 if k and ext == v:
151 return k 151 return k
152 152
153 # if not found, we use current syntax 153 # if not found, we use current syntax
154 return self.host.bridge.getParamA("Syntax", "Composition", "value", self.profile) 154 return self.host.bridge.getParamA("Syntax", "Composition", "value", self.profile)
155 155