Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Development Team/Almanac/sugar.datastore.datastore
(view source)
Revision as of 22:42, 13 August 2008
33 bytes added
,
22:42, 13 August 2008
→How do I provide a query to the datastore.find() method so that I can find datastore objects with a particular property?
Line 49:
Line 49:
<pre>
<pre>
datastore.find({'title':['this','that'],
datastore.find({'title':['this','that'],
−
'activity':'org.laptop.ReadActivity',
+
'activity':'org.laptop
.sugar
.ReadActivity',
'mime_type':'application/pdf',
'mime_type':'application/pdf',
−
'mtime':{'start':datetime.today().replace(hour=0, minute=0, second=0),'end':datetime.today().replace(hour=23, minute=59, second=59)}})
+
'mtime':{'start':datetime.today().replace(hour=0, minute=0, second=0),
+
'end':datetime.today().replace(hour=23, minute=59, second=59)}})
</pre>
</pre>
Homunq
273
edits