# HG changeset patch # User souliane # Date 1387105285 -3600 # Node ID 7c79d4d66161b7852017908f552234c90d9cb805 # Parent 1a5dc08c2749f76869951a129e3aef6af6b6bf9f browser_side: blog post update: fix assignment to immutable element diff -r 1a5dc08c2749 -r 7c79d4d66161 browser_side/panels.py --- 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')