Mercurial > libervia-web
diff 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 |
line wrap: on
line diff
--- a/libervia/pages/u/blog/page_meta.py Tue Aug 13 09:39:33 2019 +0200 +++ b/libervia/pages/u/blog/page_meta.py Tue Aug 13 19:12:31 2019 +0200 @@ -1,7 +1,7 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- -name = u"user_blog" +name = "user_blog" def parse_url(self, request): @@ -9,7 +9,7 @@ # (i.e. what's remaining in URL: filters, id, etc.) # to be used by blog's url parser, so we don't skip parse_url data = self.getRData(request) - service = data[u"service"] + service = data["service"] self.pageRedirect( - u"blog_view", request, skip_parse_url=False, path_args=[service.full(), u"@"] + "blog_view", request, skip_parse_url=False, path_args=[service.full(), "@"] )