Below is a simple model. When I use cat walk to try and add records to
the client table - aside from announcing a new instance no data gets
saved to the database.
If I use tg-admin shell - I can get the data to save IF use BOTH .sync
and say yes to updating the data on exiting the shell.
Is there something I need to do to this model to make if function
correctly?
thanks
Glenn
--------------------------------------------------------------------------------------------------------------------
class Client(SQLObject):
clientShortName=StringCol()
clientName=StringCol()
clientcontacts=MultipleJoin('ClientContact' )
projects=MultipleJoin('Project', joinColumn='projectOwner')
class ClientContact(SQLObject):
contactFirstName=StringCol()
contactLastName=StringCol()
contactPrimaryEmail=StringCol()
client=ForeignKey('Client')
isAdminForClient=BoolCol()
contactPassword=StringCol()
projects=RelatedJoin('Project')
class Project(SQLObject):
projectTitle=StringCol()
projectURL=StringCol()
projectOwner=ForeignKey('Client')
contacts=RelatedJoin('ClientContact')
class TimeSpent(SQLObject):
timeFrom=DateTimeCol()
timeTo=DateTimeCol()
billableTimeSpent=FloatCol()
comment=StringCol()
project=ForeignKey('Project')
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---