When adding custom sorting support, Article.__cmp__() was removed but
Article are still compared for equality by the command-line interface.
This commit adds Article.__eq__() to fix that.
+ def __eq__(self, other):
+ if self.path == other.path:
+ return True
+ return False
+
+
def add_comment(self, author, raw_content, link = ''):
c = Comment(self, len(self.comments))
c.set(author, raw_content, link)
def add_comment(self, author, raw_content, link = ''):
c = Comment(self, len(self.comments))
c.set(author, raw_content, link)