Quick question on the changes CatWalk makes:
I have a model that looks like this (in cut-down form):
class Session(SQLObject):
ip = StringCol(length = 32, alternateID=True)
# snip other fields
class FileXfer(SQLObject):
clientIP = ForeignKey('Session')
serverIP = ForeignKey('Session')
# snip other fields.
This creates a link on Session.id. I can then use CatWalk to change
this so that the label column is ip. All is good.
Now my question is this: I want to distribute my app and have users
do tg-admin sql create. What do I put in model.py to have the
database created with the foreign key linking to ip so that I don't
have to tell people to run CatWalk?
Cheers,
Arthur
--
One secret of happiness is to ignore comparisons with people who are
more successful than you are: always compare downwards, not upwards”
- Richard Layard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---