comparison src/pages/common/blog/page_meta.py @ 949:36e9747520fd

pages (common/blog): use request data to indicate if comments are allowed
author Goffi <goffi@goffi.org>
date Tue, 23 May 2017 00:06:03 +0200
parents c20ac29d869f
children d821c112e656
comparison
equal deleted inserted replaced
948:c20ac29d869f 949:36e9747520fd
107 107
108 if show_comments: 108 if show_comments:
109 yield appendComments(self, items, identities, profile) 109 yield appendComments(self, items, identities, profile)
110 110
111 template_data[u'items'] = items 111 template_data[u'items'] = items
112 template_data[u'allow_commenting'] = u'simple' 112 template_data[u'allow_commenting'] = data.get(u'allow_commenting', False)
113 113
114 114
115 @defer.inlineCallbacks 115 @defer.inlineCallbacks
116 def on_data_post(self, request): 116 def on_data_post(self, request):
117 profile = self.getProfile(request) 117 profile = self.getProfile(request)