comparison libervia/pages/blog/view/page_meta.py @ 1266:6b7f9c3558cc

server, pages: better identities handling: - own identity is now retrieve on connection - use session identities all the time, fixed pages where an empty dict was used - identities and own_jid are alway set in template_data for normal rendering
author Goffi <goffi@goffi.org>
date Tue, 19 May 2020 11:02:32 +0200
parents 8aff742d0dd0
children 04e7dd6b6f4d
comparison
equal deleted inserted replaced
1265:24e2973378f6 1266:6b7f9c3558cc
212 # we must return an error 212 # we must return an error
213 self.pageError(request, C.HTTP_NOT_FOUND) 213 self.pageError(request, C.HTTP_NOT_FOUND)
214 214
215 ## identities ## 215 ## identities ##
216 # identities are used to show nice nickname or avatars 216 # identities are used to show nice nickname or avatars
217 identities = template_data['identities'] = self.host.getSessionData(request, session_iface.ISATSession).identities 217 identities = self.host.getSessionData(request, session_iface.ISATSession).identities
218 218
219 ## Comments ## 219 ## Comments ##
220 # if comments are requested, we need to take them 220 # if comments are requested, we need to take them
221 if show_comments: 221 if show_comments:
222 yield appendComments(self, items, identities, profile) 222 yield appendComments(self, items, identities, profile)