Mercurial > libervia-backend
comparison src/plugins/plugin_misc_text_syntaxes.py @ 1811:90ae9a2462c2
plugin text syntaxes: fixes typo
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 19 Jan 2016 11:49:25 +0100 |
parents | 3c40fa0dcd7a |
children | d80ccf4bf201 |
comparison
equal
deleted
inserted
replaced
1810:25c3569abb71 | 1811:90ae9a2462c2 |
---|---|
249 if TextSyntaxes.OPT_HIDDEN in flags and TextSyntaxes.OPT_DEFAULT in flags: | 249 if TextSyntaxes.OPT_HIDDEN in flags and TextSyntaxes.OPT_DEFAULT in flags: |
250 raise ValueError(u"{} and {} are mutually exclusive".format(TextSyntaxes.OPT_HIDDEN, TextSyntaxes.OPT_DEFAULT)) | 250 raise ValueError(u"{} and {} are mutually exclusive".format(TextSyntaxes.OPT_HIDDEN, TextSyntaxes.OPT_DEFAULT)) |
251 | 251 |
252 syntaxes = TextSyntaxes.params_data['syntaxes'] | 252 syntaxes = TextSyntaxes.params_data['syntaxes'] |
253 if name in syntaxes: | 253 if name in syntaxes: |
254 raise exceptions.ConflitError(u"This syntax name already exists: {}".format(name)) | 254 raise exceptions.ConflictError(u"This syntax name already exists: {}".format(name)) |
255 syntaxes[name] = {"to": to_xhtml_cb, "from": from_xhtml_cb, "flags": flags} | 255 syntaxes[name] = {"to": to_xhtml_cb, "from": from_xhtml_cb, "flags": flags} |
256 if TextSyntaxes.OPT_DEFAULT in flags: | 256 if TextSyntaxes.OPT_DEFAULT in flags: |
257 syntaxes = TextSyntaxes.params_data['default'] = name | 257 syntaxes = TextSyntaxes.params_data['default'] = name |
258 | 258 |
259 self._updateParamOptions() | 259 self._updateParamOptions() |