[Bugs] #2525 UNSP: Wrong query specification for datastore.find()

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Dec 3 17:24:00 EST 2010


#2525: Wrong query specification for datastore.find()
------------------------------------------+---------------------------------
    Reporter:  alsroot                    |          Owner:  erikos                     
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar-toolkit              |        Version:  Git as of bugdate          
    Severity:  Unspecified                |       Keywords:                             
Status_field:  Unconfirmed                |   Distribution:  Unspecified                
   Seeta_dev:                             |  
------------------------------------------+---------------------------------
Description changed by alsroot:

Old description:

> Method documentation says:
> {{{
>     query -- a dictionary containing metadata key value pairs
>              for a fulltext search use the key 'query' e.g. {'query':
> 'blue*'}
>              other possible well-known properties are:
>              'activity':          'my.organization.MyActivity'
>              'activity_id':
> '6f7f3acacca87886332f50bdd522d805f0abbf1f'
>              'title':             'My new project'
>              'title_set_by_user': '0'
>              'keep':              '0'
>              'ctime':             '1972-05-12T18:41:08'
>              'mtime':             '2007-06-16T03:42:33'
>              'timestamp':         1192715145
>              'preview':           ByteArray(png file data, 300x225 px)
>              'icon-color':        '#ff0000,#ffff00'
>              'mime_type':         'application/x-my-activity'
>              'share-scope':       # if shared
>              'buddies':           '{}'
>              'description':       'some longer text'
>              'tags':              'one two'
> }}
>
> but supported on ds level search terms are:
>
> * uid
> * activity
> * activity_id
> * mime_type
> * keep

New description:

 Method documentation says:
 {{{
     query -- a dictionary containing metadata key value pairs
              for a fulltext search use the key 'query' e.g. {'query':
 'blue*'}
              other possible well-known properties are:
              'activity':          'my.organization.MyActivity'
              'activity_id':
 '6f7f3acacca87886332f50bdd522d805f0abbf1f'
              'title':             'My new project'
              'title_set_by_user': '0'
              'keep':              '0'
              'ctime':             '1972-05-12T18:41:08'
              'mtime':             '2007-06-16T03:42:33'
              'timestamp':         1192715145
              'preview':           ByteArray(png file data, 300x225 px)
              'icon-color':        '#ff0000,#ffff00'
              'mime_type':         'application/x-my-activity'
              'share-scope':       # if shared
              'buddies':           '{}'
              'description':       'some longer text'
              'tags':              'one two'
 }}}

 but supported on ds level search terms are:

 * uid
 * activity
 * activity_id
 * mime_type
 * keep

--

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2525#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list