comparison src/browser/sat_browser/blog.py @ 761:e69f411c16a5

browser_side (blog): removed unused variables initialisations
author souliane <souliane@mailoo.org>
date Tue, 24 Nov 2015 23:27:56 +0100
parents f725cc49e996
children 8eeb98659de2
comparison
equal deleted inserted replaced
760:78caef6ed8e7 761:e69f411c16a5
318 def _changeMode(self, original_content, text): 318 def _changeMode(self, original_content, text):
319 self.mode = C.ENTRY_MODE_RICH if self.mode == C.ENTRY_MODE_TEXT else C.ENTRY_MODE_TEXT 319 self.mode = C.ENTRY_MODE_RICH if self.mode == C.ENTRY_MODE_TEXT else C.ENTRY_MODE_TEXT
320 if self.mode in ENTRY_RICH and not text: 320 if self.mode in ENTRY_RICH and not text:
321 text = ' ' # something different than empty string is needed to initialize the rich text editor 321 text = ' ' # something different than empty string is needed to initialize the rich text editor
322 self.item.content = text 322 self.item.content = text
323 self.content_title = self.content_title_xhtml = ''
324 self.bubble.removeFromParent() 323 self.bubble.removeFromParent()
325 self._setBubble() 324 self._setBubble()
326 self.bubble.setOriginalContent(original_content) 325 self.bubble.setOriginalContent(original_content)
327 if self.mode in ENTRY_RICH: 326 if self.mode in ENTRY_RICH:
328 self.item.content_xhtml = text 327 self.item.content_xhtml = text