added the location and _attachments field to support the twitter additions
authorBryan Clark <clarkbw@gnome.org>
Wed, 18 Feb 2009 10:45:29 -0800
changeset 48 384724bf1aee5c50c16e7bb840e0c33698ec30c0
parent 47 ba518ea3ee85f7798835c50def4a433f1f9a6106
child 49 8c0390993e9488e2fa46b77f699570235de193ee
push id1
push userroot
push dateWed, 08 Apr 2009 01:46:05 +0000
added the location and _attachments field to support the twitter additions
server/python/junius/model.py
--- a/server/python/junius/model.py
+++ b/server/python/junius/model.py
@@ -29,16 +29,18 @@ class Account(schema.Document):
         }''')
 
 class Contact(schema.Document):
     name = schema.TextField()
     identities = schema.ListField(schema.DictField(schema.Schema.build(
         kind = schema.TextField(),
         value = schema.TextField()
     )))
+    location = schema.TextField()
+    _attachments = WildField(default={})
     #: expose contacts by their identities
     by_identity = schema.View('contacts', '''\
         function(doc) {
             for each (var identity in doc.identities) {
                 emit([identity.kind, identity.value], doc);
             }
         }''')
     #: expose all suffixes of the contact name and identity values