Author: test
Date: 2005-10-26 23:06:11 +0000 (Wed, 26 Oct 2005)
New Revision: 1144
Modified:
SQLObject/trunk/docs/SQLBuilder.txt
Log:
Fixed import statements, per bug 1338107
Modified: SQLObject/trunk/docs/SQLBuilder.txt
===================================================================
--- SQLObject/trunk/docs/SQLBuilder.txt 2005-10-26 22:57:59 UTC (rev 1143)
+++ SQLObject/trunk/docs/SQLBuilder.txt 2005-10-26 23:06:11 UTC (rev 1144)
@@ -3,7 +3,7 @@
``````````
A number of variables from SQLBuilder are included with ``from
-SQLObject import *`` -- see the `relevant SQLObject documentation`_
+sqlobject import *`` -- see the `relevant SQLObject documentation`_
for more. Its functionality is also available through the special
``q`` attribute of `SQLObject` classes.
@@ -20,7 +20,7 @@
of a table class -- this gives you an object that represents the
field. Maybe explanations aren't as good. Here's some examples::
- >>> from SQLBuilder import *
+ >>> from sqlobject.sqlbuilder import *
>>> person = table.person
# person is now equivalent to the Person.q object from the SQLObject
# documentation
@@ -43,7 +43,7 @@
# This isn't what you want:
>> person.first_name == 'John' & person.last_name == 'Doe'
- (person.first_name = ('John' AND person.last_name)) = 'Doe'
+ (person.first_name = ('John' AND person.last_name)) = 'Doe')
# This is:
>> (person.first_name == 'John') & (person.last_name == 'Doe')
((person.first_name = 'John') AND (person.last_name == 'Doe'))
|