Author: phd
Date: Fri Nov 19 08:18:17 2010
New Revision: 4275
Log:
Updated documentation about _defaultOrder - it has been moved to sqlmeta.
Modified:
SQLObject/trunk/docs/SQLObject.txt
SQLObject/trunk/sqlobject/tests/test_string_id.py (props changed)
Modified: SQLObject/trunk/docs/SQLObject.txt
==============================================================================
--- SQLObject/trunk/docs/SQLObject.txt Fri Nov 19 08:17:41 2010 (r4274)
+++ SQLObject/trunk/docs/SQLObject.txt Fri Nov 19 08:18:17 2010 (r4275)
@@ -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
@@ -1290,7 +1292,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`_),
|