On 7/7/07, W-Mark Kubacki <[EMAIL PROTECTED]> wrote:
>
> Thomas G. Willis wrote:
> >
> > Anyway, my question. I want to have columns for updateDate and
> > createDate. I'm sure you can guess what the functionality would be.
>
> If you use MySQL alone you could try that:
>
> class Contact(SQLNoneSetter, SQLJournalled, SQLObject):
>
>     date_created        = DateTimeCol(default=datetime.now, notNone=True)
>     date_modified       = Col(default=None, sqlType='TIMESTAMP')



Good point thanks. Obviously I have some reading to do on SQLObject. :P


-- 
Thomas G. Willis

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to