Hi folks,
I'm having a coding dilemma with regards to multiple sql model objects
that have a dependency.
For example class1 has a dependency on class2. Other examples include
single or multiple joins.
---------
class class1(SQLObject):
param1 = ForeignKey('class2')
class class2(SQLObject):
param1 = IntCol(length=255)
---------
c1 = class1(param1=None)
In a case such as this, how do I initialize a class1 object? Do i need
to initialize a class2 object first and then pass it into the class1
initializer? How would this work with a multiple join?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---