comparison frontends/src/quick_frontend/quick_blog.py @ 1849:a754d6381550

quick_frontend (blog): correction for the previous patch: - "comments_node" and "comments_service" are not needed when "comments" is already here - to set "allow_comments" to True when updating a main item was enough
author souliane <souliane@mailoo.org>
date Mon, 22 Feb 2016 13:44:14 +0100
parents 446a1539c207
children d3354c80bd1f
comparison
equal deleted inserted replaced
1848:446a1539c207 1849:a754d6381550
247 def send(self): 247 def send(self):
248 """Send entry according to parent QuickBlog configuration and current level""" 248 """Send entry according to parent QuickBlog configuration and current level"""
249 249
250 # keys to keep other than content*, title* and tag* 250 # keys to keep other than content*, title* and tag*
251 # FIXME: see how to avoid comments node hijacking (someone could bind his post to another post's comments node) 251 # FIXME: see how to avoid comments node hijacking (someone could bind his post to another post's comments node)
252 keys_to_keep = ('id', 'comments', 'author', 'author_jid', 'published', 'comments_node', 'comments_service') 252 keys_to_keep = ('id', 'comments', 'author', 'author_jid', 'published')
253 253
254 mb_data = {} 254 mb_data = {}
255 for key in keys_to_keep: 255 for key in keys_to_keep:
256 value = getattr(self.item, key) 256 value = getattr(self.item, key)
257 if value is not None: 257 if value is not None: