changed __str__ to __repr__ and created simpler version of __str__

This commit is contained in:
Ken Sato
2011-02-13 17:29:33 -08:00
parent 60e23e551b
commit 1060fd03d5
6 changed files with 46 additions and 12 deletions
+4 -1
View File
@@ -19,9 +19,12 @@ class ConvoreTopic(object):
self.id = t['id']
def __str__(self):
return "<ConvoreTopic id='%s'>" % self.id
def __repr__(self):
return ",".join(map(str,(
self.name,
"(%s)" % self.creator,
self.creator,
self.url,
self.slug,
self.date_latest_message,