diff options
author | Benjamin Saller <bcsaller@objectrealms.net> | 2007-05-08 19:40:43 (GMT) |
---|---|---|
committer | Benjamin Saller <bcsaller@objectrealms.net> | 2007-05-08 19:40:43 (GMT) |
commit | 3768dae14fd1b42ef3898a7dfbe2b109e6aff30e (patch) | |
tree | 8ba45945cd691daf4d16f0282b69f4a07ed50191 /src/olpc/datastore/model.py | |
parent | 295ae4ac4195401c45f74d02a2a93cd5cd3fde0c (diff) |
added all() call to DataStore for DBus
this works around find() needing any of None or {} passed for a query
which DBus barfs on
Changed ids to uuids
Made the client code work with DBus -- typo :(
Diffstat (limited to 'src/olpc/datastore/model.py')
-rw-r--r-- | src/olpc/datastore/model.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/olpc/datastore/model.py b/src/olpc/datastore/model.py index cc4c458..779079d 100644 --- a/src/olpc/datastore/model.py +++ b/src/olpc/datastore/model.py @@ -192,9 +192,10 @@ class Model(object): # content object content = Table('content', self.querymanager.metadata, - Column('id', Integer, Sequence('content_id_seq'), primary_key=True), + Column('id', String, primary_key=True, nullable=False), Column('activity_id', Integer), Column('checksum', String,), + UniqueConstraint('id', name='content_key') ) Index('content_activity_id_idx', content.c.activity_id) |