Author: phd
Date: 2004-12-02 19:57:06 +0000 (Thu, 02 Dec 2004)
New Revision: 431
Modified:
home/phd/SQLObject/inheritance/docs/SQLObject.txt
home/phd/SQLObject/inheritance/examples/personaddress.py
Log:
Merged changes from trunk revisions 425:430.
Modified: home/phd/SQLObject/inheritance/docs/SQLObject.txt
===================================================================
--- home/phd/SQLObject/inheritance/docs/SQLObject.txt 2004-12-02 16:46:20 UTC (rev 430)
+++ home/phd/SQLObject/inheritance/docs/SQLObject.txt 2004-12-02 19:57:06 UTC (rev 431)
@@ -478,7 +478,8 @@
method, which is called after an object is fetched or inserted. This
method has the signature ``_init(self, id, connection=None,
selectResults=None)``, though you may just want to use ``_init(self,
-*args, **kw)``.
+*args, **kw)``. **Note:** don't forget to call
+``SQLObject._init(self, *args, **kw)`` if you override the method!
Adding Magic Attributes (properties)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Modified: home/phd/SQLObject/inheritance/examples/personaddress.py
===================================================================
--- home/phd/SQLObject/inheritance/examples/personaddress.py 2004-12-02 16:46:20 UTC (rev 430)
+++ home/phd/SQLObject/inheritance/examples/personaddress.py 2004-12-02 19:57:06 UTC (rev 431)
@@ -61,9 +61,9 @@
AND(Address.q.personID == Person.q.id,
Address.q.zip.startswith('504')))
print list(peeps)
-# SELECT person.id FROM person, phone_number
-# WHERE (phone_number.id = person.id AND
-# phone_number.phone_number LIKE '612%');
+# SELECT person.id FROM person, address
+# WHERE (address.person_id = person.id AND
+# address.zip LIKE '612%');
## end snippet
## Snippet "person-select3"
|