comparison sat_frontends/jp/cmd_blog.py @ 2673:f69c1b260e49

jp (blog/import): removed now useless generation of url_redirections_profile config key
author Goffi <goffi@goffi.org>
date Fri, 14 Sep 2018 16:45:11 +0200
parents 266f871fcb4b
children 4b693ea24d5f
comparison
equal deleted inserted replaced
2672:0bed6df9ee5d 2673:f69c1b260e49
860 if k.startswith(URL_REDIRECT_PREFIX) 860 if k.startswith(URL_REDIRECT_PREFIX)
861 } 861 }
862 if redirections: 862 if redirections:
863 conf = u"\n".join( 863 conf = u"\n".join(
864 [ 864 [
865 u"url_redirections_profile = {}".format(self.profile),
866 u"url_redirections_dict = {}".format( 865 u"url_redirections_dict = {}".format(
867 # we need to add ' ' before each new line 866 # we need to add ' ' before each new line
868 # and to double each '%' for ConfigParser 867 # and to double each '%' for ConfigParser
869 u"\n ".join( 868 u"\n ".join(
870 json.dumps(redirections, indent=1, separators=(",", ": ")) 869 json.dumps(redirections, indent=1, separators=(",", ": "))