comparison frontends/src/quick_frontend/quick_blog.py @ 2218:6a2fa651d7fa

plugin XEP-0060: node create/delete improvments: - use client instead of profile for createNode and deleteNode - new bridge method psCreateNode - renamed psDeleteNode to psNodeDelete
author Goffi <goffi@goffi.org>
date Mon, 03 Apr 2017 00:22:58 +0200
parents 2daf7b4c6756
children 8b37a62336c3
comparison
equal deleted inserted replaced
2217:893030a9d351 2218:6a2fa651d7fa
314 314
315 if there is a comments node, it will be purged too 315 if there is a comments node, it will be purged too
316 """ 316 """
317 # TODO: manage several comments nodes case. 317 # TODO: manage several comments nodes case.
318 if self.item.comments: 318 if self.item.comments:
319 self.blog.host.bridge.psDeleteNode(unicode(self.item.comments_service) or "", self.item.comments_node, profile=self.blog.profile) 319 self.blog.host.bridge.psNodeDelete(unicode(self.item.comments_service) or "", self.item.comments_node, profile=self.blog.profile)
320 self.blog.host.bridge.mbRetract(unicode(self.service or ""), self.node or "", self.item.id, profile=self.blog.profile) 320 self.blog.host.bridge.mbRetract(unicode(self.service or ""), self.node or "", self.item.id, profile=self.blog.profile)
321 321
322 322
323 class QuickBlog(EntriesManager, quick_widgets.QuickWidget): 323 class QuickBlog(EntriesManager, quick_widgets.QuickWidget):
324 324