]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/backend/wiki.py
wiki: Show useful repr for pages
[ipfire.org.git] / src / backend / wiki.py
index 7962ea0b9acb89cc441065fee2641df35a926606..59406da0a3c17cafaf96b86964c6e3d3465e5a0e 100644 (file)
@@ -178,6 +178,9 @@ class Page(misc.Object):
                self.id = id
                self.data = data
 
+       def __repr__(self):
+               return "<%s %s %s>" % (self.__class__.__name__, self.page, self.timestamp)
+
        def __lt__(self, other):
                if isinstance(other, self.__class__):
                        if self.page == other.page: