Opened 12 years ago
Last modified 9 years ago
#2525 new defect
Wrong query specification for datastore.find()
| Reported by: | alsroot | Owned by: | erikos |
|---|---|---|---|
| Priority: | Normal | Milestone: | Unspecified |
| Component: | Sugar | Version: | Git as of bugdate |
| Severity: | Unspecified | Keywords: | |
| Cc: | Distribution/OS: | Unspecified | |
| Bug Status: | Unconfirmed |
Description (last modified by alsroot)
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
For text search, "query" key should be used.
Change History (4)
comment:1 Changed 12 years ago by alsroot
- Description modified (diff)
comment:2 Changed 12 years ago by alsroot
- Description modified (diff)
comment:3 Changed 10 years ago by dnarvaez
- Component changed from sugar-toolkit to Sugar
comment:4 Changed 9 years ago by walter
- Priority changed from Unspecified by Maintainer to Normal
Note: See
TracTickets for help on using
tickets.