Hello,

I have something who look like that.

class user(SQLObject):
     name          = StringCol(length=40)
     first_name    = StringCol(length=40)
     email         = StringCol(length=80)
     datein        = DateTimeCol(default=datetime.datetime.utcnow())

The datein field doesn't have the value you would expect. Logically  
we would expect to have the date and hour at the time the entry is  
created in the database, instead we have program start date and time.

Is there a way to have a default value with the normal database  
behavior ? (i am using sqlite for this program)

-fred-





--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to