diff taginthemiddle/model.py @ 2:1182315b18ac

add rudimentary code for handlers
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 04 May 2010 19:15:21 -0700
parents 837cfc05d4d9
children fc3491dfe374
line wrap: on
line diff
--- a/taginthemiddle/model.py	Tue May 04 18:46:05 2010 -0700
+++ b/taginthemiddle/model.py	Tue May 04 19:15:21 2010 -0700
@@ -2,6 +2,7 @@
  tags have:
  - a list of resources they're applied to
  - a time they're applied
+ - for multi-user tags, the author should be passed (fudge for now)
  for now just assume  auth is on and that anyone authenticated may tag
  e.g. a tags file
 
@@ -63,4 +64,5 @@
       return
     self.tags[tag].remove(url)
     self.urls[url].remove(tag)
+    del self.times[(tag, url)]
     self.write()