comparison libervia/pages/blog/view/page_meta.py @ 1219:0f0c36992f3c

pages (blog/view, forums/view): fixed encoding of request.args following Python3 port
author Goffi <goffi@goffi.org>
date Fri, 16 Aug 2019 17:14:46 +0200
parents b2d067339de3
children acec8e9185db
comparison
equal deleted inserted replaced
1218:c9fc839d304c 1219:0f0c36992f3c
236 --bg-img: url("%s"); 236 --bg-img: url("%s");
237 } 237 }
238 """ % cgi.escape(bg_img, True)) 238 """ % cgi.escape(bg_img, True))
239 239
240 template_data['items'] = data['items'] = items 240 template_data['items'] = data['items'] = items
241 if request.args.get('reverse') == ['1']: 241 if request.args.get(b'reverse') == ['1']:
242 template_data['items'].items.reverse() 242 template_data['items'].items.reverse()
243 template_data['items_http_uri'] = items_http_uri = {} 243 template_data['items_http_uri'] = items_http_uri = {}
244 template_data['tags_http_uri'] = tags_http_uri = {} 244 template_data['tags_http_uri'] = tags_http_uri = {}
245 245
246 246