~crass/tryton/server

« back to all changes in this revision

Viewing changes to doc/ref/models/models.rst

  • Committer: Mathias Behrle
  • Date: 2013-11-24 16:28:54 UTC
  • Revision ID: git-v1:182d6cce169eab1682eeacbad4323efa1136a1a0
MergingĀ upstreamĀ versionĀ 3.0.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
391
391
 
392
392
Class methods:
393
393
 
 
394
.. classmethod:: ModelSQL.__table__()
 
395
 
 
396
    Return a SQL Table instance for the Model.
 
397
 
394
398
.. classmethod:: ModelSQL.table_query()
395
399
 
396
400
    Could be overrided to use a custom SQL query instead of a table of the
397
 
    database. It should return a tuple containing SQL query and arguments.
 
401
    database. It should return a SQL FromItem.
 
402
 
 
403
.. classmethod:: ModelStorage.search(domain[, offset[, limit[, order[, count[, query]]]]])
 
404
 
 
405
    Return a list of records that match the :ref:`domain <topics-domain>` or
 
406
    the sql query if query is True.
398
407
 
399
408
.. classmethod:: ModelSQL.search_domain(domain[, active_test])
400
409