Roundup Tracker - Issues

Message4919

Author stuart
Recipients rouilj, stuart
Date 2013-08-23.02:07:48
Message-id <1377223669.27.0.0487747266971.issue2550818@psf.upfronthosting.co.za>
In-reply-to
Here is the schema, and a diff of me trying to fix the problem (now gets
KeyError: 'keyword').  The schema was ported from 0.8 (I added a topic
list to user record, and users can only see their own topics unless list
is empty), so I probably broke it.  But how was it working all this
time?  I have to catch a train in the morning, so I won't be able to
check in again until tomorrow (via mobile hotspot on the train!).

diff -u -r1.1 schema.py
--- schema.py	2013/08/23 01:55:09	1.1
+++ schema.py	2013/08/23 01:58:44
@@ -98,9 +98,9 @@
 	return False
     if db.issue.get(itemid, 'creator') == userid:
 	return True
-    user_topics = db.user.get(userid, 'topic')
+    user_topics = db.user.get(userid, 'keyword')
     if not user_topics: return True
-    issue_topics = db.issue.get(itemid, 'topic')
+    issue_topics = db.issue.get(itemid, 'keyword')
     # When any are defined, at least one user topic must be in issue topics
     for t in user_topics:
       if t in issue_topics: return True
History
Date User Action Args
2013-08-23 02:07:49stuartsetmessageid: <1377223669.27.0.0487747266971.issue2550818@psf.upfronthosting.co.za>
2013-08-23 02:07:49stuartsetrecipients: + stuart, rouilj
2013-08-23 02:07:49stuartlinkissue2550818 messages
2013-08-23 02:07:49stuartcreate