comparison libervia/pages/u/blog/page_meta.py @ 1216:b2d067339de3

python 3 port: /!\ Python 3.6+ is now needed to use libervia /!\ instability may occur and features may not be working anymore, this will improve with time /!\ TxJSONRPC dependency has been removed The same procedure as in backend has been applied (check backend commit ab2696e34d29 logs for details). Removed now deprecated code (Pyjamas compiled browser part, legacy blog, JSON RPC related code). Adapted code to work without `html` and `themes` dirs.
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 19:12:31 +0200
parents 28e3eb3bb217
children f511f8fbbf8a
comparison
equal deleted inserted replaced
1215:f14ab8a25e8b 1216:b2d067339de3
1 #!/usr/bin/env python2.7 1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 3
4 name = u"user_blog" 4 name = "user_blog"
5 5
6 6
7 def parse_url(self, request): 7 def parse_url(self, request):
8 # in this subpage, we want path args and query args 8 # in this subpage, we want path args and query args
9 # (i.e. what's remaining in URL: filters, id, etc.) 9 # (i.e. what's remaining in URL: filters, id, etc.)
10 # to be used by blog's url parser, so we don't skip parse_url 10 # to be used by blog's url parser, so we don't skip parse_url
11 data = self.getRData(request) 11 data = self.getRData(request)
12 service = data[u"service"] 12 service = data["service"]
13 self.pageRedirect( 13 self.pageRedirect(
14 u"blog_view", request, skip_parse_url=False, path_args=[service.full(), u"@"] 14 "blog_view", request, skip_parse_url=False, path_args=[service.full(), "@"]
15 ) 15 )