Development Team/Low-level Activity API: Difference between revisions

Bert (talk | contribs)
Mount Points: clarify this is 0.82 only
Bert (talk | contribs)
Querying: mention more restrictions
Line 202: Line 202:
::: 'order_by': key (or array of keys) to order results by, to reverse order use '-key' <i>(but see note below)</i>
::: 'order_by': key (or array of keys) to order results by, to reverse order use '-key' <i>(but see note below)</i>
::: 'limit', 'offset': return only limit results starting at offset
::: 'limit', 'offset': return only limit results starting at offset
::: 'mountpoints': array of mountpoint ids to search (or all if not specified)
::: 'mountpoints': array of [[#Mount Points|mountpoint ids]] to search (or all if not specified)
::: 'include_files': if true, generate files as if get_filename() had been called for each item. In results, a property 'filename' will be added.
::: 'include_files': if true, generate files as if get_filename() had been called for each item. In results, a property 'filename' will be added.


Line 211: Line 211:
  values = datastore.get_uniquevaluesfor(property, query)
  values = datastore.get_uniquevaluesfor(property, query)


<i>Note that currently (2007-07-25) the query is ignored in this call, it looks for all values in all entries.</i>
''NOTE: currently (2007-07-25) the query is ignored in this call, it looks for all values in all entries. And in more recent Sugar versions, the only property allowed is 'activity'.''


==Progress Display==
==Progress Display==