new backend 'fourchan' (implements ICapMessages)

This commit is contained in:
Romain Bignon 2010-06-08 22:18:56 +02:00
commit 5be1d36beb
6 changed files with 237 additions and 2 deletions

View file

@ -73,8 +73,8 @@ class Message:
return self.id == msg.id and self.thread_id == msg.thread_id
def __repr__(self):
result = '<Message id="%s" title="%s" date="%s" from="%s">' % (
self.id, self.title, self.date, self.sender)
result = '<Message id="%s.%s" title="%s" date="%s" from="%s">' % (
self.thread_id, self.id, self.title, self.date, self.sender)
return result.encode('utf-8')
class ICapMessages(ICap):