[SQL-CVS] r2103 - SQLObject/branches/0.7-bugfix/docs
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2006-11-20 19:37:31
|
Author: phd Date: 2006-11-20 12:37:25 -0700 (Mon, 20 Nov 2006) New Revision: 2103 Modified: SQLObject/branches/0.7-bugfix/docs/FAQ.txt Log: Reformatted the example so the code doesn't overlap the note. Modified: SQLObject/branches/0.7-bugfix/docs/FAQ.txt =================================================================== --- SQLObject/branches/0.7-bugfix/docs/FAQ.txt 2006-11-20 19:35:42 UTC (rev 2102) +++ SQLObject/branches/0.7-bugfix/docs/FAQ.txt 2006-11-20 19:37:25 UTC (rev 2103) @@ -129,11 +129,15 @@ ... class sqlmeta: ... table = "user_table" ... username = StringCol(alternateID=True, length=20) - ... roles = SQLRelatedJoin('Role', intermediateTable='user_roles', createRelatedTable=False) + ... roles = SQLRelatedJoin('Role', + ... intermediateTable='user_roles', + ... createRelatedTable=False) >>> class Role(SQLObject): ... name = StringCol(alternateID=True, length=20) - ... users = SQLRelatedJoin('User', intermediateTable='user_roles', createRelatedTable=False) + ... users = SQLRelatedJoin('User', + ... intermediateTable='user_roles', + ... createRelatedTable=False) >>> class UserRoles(SQLObject): ... class sqlmeta: |