Mercurial > genshi > mirror
diff examples/tutorial/geddit/model.py @ 619:756e7418e10c trunk
GenshiTutorial: various updates to sync with wiki page.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 14:19:59 +0000 |
parents | b6706f9346ac |
children | abad7c2ebe15 |
line wrap: on
line diff
--- a/examples/tutorial/geddit/model.py +++ b/examples/tutorial/geddit/model.py @@ -1,14 +1,14 @@ from datetime import datetime -class Submission(object): +class Link(object): def __init__(self, username, url, title): self.username = username self.url = url self.title = title self.time = datetime.utcnow() - self.code = hex(hash(tuple([username, url, title, self.time])))[2:] + self.id = hex(hash(tuple([username, url, title, self.time])))[2:] self.comments = [] def __repr__(self):