diff commentator/model.py @ 2:689b9d928dc8

add date, reflect api change of lxmlmiddleware
author k0s <k0scist@gmail.com>
date Tue, 26 Jan 2010 23:00:51 -0500
parents 1c95a3fa76c1
children d0d8524d9495
line wrap: on
line diff
--- a/commentator/model.py	Sun Jan 24 17:40:54 2010 -0500
+++ b/commentator/model.py	Tue Jan 26 23:00:51 2010 -0500
@@ -13,6 +13,7 @@
             f.close()
 
     def comment(self, uri, **kw):
+        kw['date'] = datetime.now()
         f = file(self.database)
         comments = pickle.load(f)
         f.close()