[SQL-CVS] r4273 - SQLObject/branches/0.13/docs
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2010-11-19 15:09:19
|
Author: phd Date: Fri Nov 19 08:09:11 2010 New Revision: 4273 Log: Updated documentation about _defaultOrder - it has been moved to sqlmeta. Modified: SQLObject/branches/0.13/docs/SQLObject.txt Modified: SQLObject/branches/0.13/docs/SQLObject.txt ============================================================================== --- SQLObject/branches/0.13/docs/SQLObject.txt Fri Nov 19 07:58:34 2010 (r4272) +++ SQLObject/branches/0.13/docs/SQLObject.txt Fri Nov 19 08:09:11 2010 (r4273) @@ -394,9 +394,11 @@ types as well), or call ``MyClass.select().reversed()``. orderBy can also take a list of columns in the same format: ``["-weight", "name"]``. -You can use the special class variable `_defaultOrder` to give a +You can use the `sqlmeta`_ class variable `defaultOrder` to give a default ordering for all selects. To get an unordered result when -`_defaultOrder` is used, use ``orderBy=None``. +`defaultOrder` is used, use ``orderBy=None``. + +.. _`sqlmeta`: `Class sqlmeta`_ Select results are generators, which are lazily evaluated. So the SQL is only executed when you iterate over the select results, or if you @@ -1281,7 +1283,7 @@ You should pass that parameter. `orderBy`: Like the `orderBy`_ argument to `select()`, you can specify - the order that the joined objects should be returned in. `_defaultOrder` + the order that the joined objects should be returned in. `defaultOrder` will be used if not specified; ``None`` forces unordered results. `joinMethodName`: When adding joins dynamically (using the class method `addJoin`_), |