Skip to content
This repository was archived by the owner on Mar 17, 2020. It is now read-only.

Commit 2f75983

Browse files
committed
Merge branch 'master' of https://github.com/mpirnat/blogofile
2 parents 9b032de + b8094ee commit 2f75983

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

blogofile/site_init/blog_features/_controllers/blog/categories.py

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def write_categories():
6262
next_link = None
6363

6464
env = {
65+
"category": category,
6566
"posts": page_posts,
6667
"prev_link": prev_link,
6768
"next_link": next_link

blogofile/site_init/blog_features/_controllers/blog/post.py

-4
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,9 @@ def __hash__(self):
301301
def __repr__(self):
302302
return self.name
303303

304-
# FIXME: remove the first __cmp__ since the second one overwrites it?
305304
def __cmp__(self, other):
306305
return cmp(self.name, other.name)
307306

308-
def __cmp__(self, other):
309-
return self is other
310-
311307

312308
def parse_posts(directory):
313309
"""Retrieve all the posts from the directory specified.

0 commit comments

Comments
 (0)