[Sugar-devel] get list of titles in the datastore?

Bert Freudenberg bert at freudenbergs.de
Sat Dec 4 06:53:38 EST 2010


This limitation was already documented here:

http://wiki.sugarlabs.org/go/Development_Team/Low-level_Activity_API#Querying

To my knowledge that page is reasonably up-to-date. Please correct it if I'm wrong ;)

- Bert -

On 04.12.2010, at 04:03, Erik Blankinship wrote:

> from #sugar...
> alsroot : try datastore.find({'query':'coolthings'})
> 
> alsroot: for now, only uid, activity, activity_id, mime_type and keep search term are supported
> 
> 
> On Fri, Dec 3, 2010 at 4:49 PM, Erik Blankinship <erikb at mediamods.com> wrote:
> I tried using this bit of code to get a list of items in the journal by their title, but it is returning everything in the journal!
> 
> http://bit.ly/fjgpJr
> 
> ds_objects, num_objects = datastore.find({'title':'file1.txt'})  
> 
> Any suggestions?
> 
> 
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101204/7506e607/attachment.html>


More information about the Sugar-devel mailing list