Skip to content
Permalink
Browse files

fix #1792 -- make Unicode slugs work again

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 7, 2015
1 parent c1d84a9 commit 2b43c49388f05135d8ff899949e3d0255ceee8f9
Showing with 2 additions and 2 deletions.
  1. +1 −1 nikola/plugins/task/posts.py
  2. +1 −1 nikola/post.py
@@ -66,7 +66,7 @@ def tl_ch():
'basename': self.name,
'name': 'timeline_changes',
'actions': [tl_ch],
'uptodate': [utils.config_changed({1: kw['timeline']})],
#'uptodate': [utils.config_changed({1: kw['timeline']})],
}

for lang in kw["translations"]:
@@ -243,7 +243,7 @@ def __repr__(self):
if vv:
sub_meta[kk] = vv
m.update(utils.unicode_str(json.dumps(clean_meta, cls=utils.CustomEncoder, sort_keys=True)).encode('utf-8'))
return '<Post: {0} {1}>'.format(self.source_path, m.hexdigest())
return '<Post: {0!r} {1}>'.format(self.source_path, m.hexdigest())

def _has_pretty_url(self, lang):
if self.pretty_urls and \

0 comments on commit 2b43c49

Please sign in to comment.
You can’t perform that action at this time.