Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 1 and Version 2 of SQLObjectForeignKeys


Ignore:
Timestamp:
03/25/06 22:56:56 (13 years ago)
Author:
ajones
Comment:

Cleaned up code snippet to not show break tags.

Legend:

Unmodified
Added
Removed
Modified
  • SQLObjectForeignKeys

    v1 v2  
    55#!python 
    66class Person(SQLObject): 
    7     firstName = StringCol()[[BR]] 
    8     lastName = StringCol()[[BR]] 
     7    firstName = StringCol() 
     8    lastName = StringCol() 
    99    address = MultipleJoin('Address') 
    1010 
    1111class Address(SQLObject): 
    12     street = StringCol()[[BR]] 
    13     city = StringCol()[[BR]] 
    14     state = StringCol(length=2)[[BR]] 
    15     zip = StringCol(length=9)[[BR]] 
     12    street = StringCol() 
     13    city = StringCol() 
     14    state = StringCol(length=2) 
     15    zip = StringCol(length=9) 
    1616    person = ForeignKey('Person') 
    1717