Mercurial > libervia-web
diff browser_side/panels.py @ 293:7c79d4d66161
browser_side: blog post update: fix assignment to immutable element
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 15 Dec 2013 12:01:25 +0100 |
parents | 1a5dc08c2749 |
children | a6b3715f0bd6 |
line wrap: on
line diff
--- a/browser_side/panels.py Tue Dec 10 14:03:47 2013 +0100 +++ b/browser_side/panels.py Sun Dec 15 12:01:25 2013 +0100 @@ -353,7 +353,7 @@ self.comments = mblog_entry.comments self.pub_data = (mblog_entry.hash[0], mblog_entry.hash[1], mblog_entry.id) - self.editable_content = (mblog_entry.xhtml, const._SYNTAX_XHTML) if mblog_entry.xhtml else (mblog_entry.content, None) + self.editable_content = [mblog_entry.xhtml, const._SYNTAX_XHTML] if mblog_entry.xhtml else [mblog_entry.content, None] self.panel = FlowPanel() self.panel.setStyleName('mb_entry') @@ -468,7 +468,7 @@ self.editbox.setFocus(True) self.editbox.setSelectionRange(len(text), 0) self.edit_panel = panel - self.editable_content = (text, container.format if isinstance(container, richtext.RichTextEditor) else None) + self.editable_content = [text, container.format if isinstance(container, richtext.RichTextEditor) else None] if self.entry.xhtml: options = ('no_recipient', 'no_sync_unibox', 'no_style', 'update_msg', 'no_close')