Problem on getting date column in SQLObject

CL (Ciu Loeng) Lam lamciuloeng at gmail.com
Fri Sep 12 06:15:05 CEST 2008


Hi,all:I make the SQLObject as the ORM in turbogears ,now I meet a problems
on selecting records for a given date . Here is the define for my class:
class updateHistory(SQLObject):
    actionTime =  DateTimeCol(default=datetime.now)
    actionContent = UnicodeCol(length=500,default="")

Then how can I  get the records during a special time ,for example , from
2008-05-10 to 2008-09-01,
It will be very thankful if someone could paste some snippets for this
problems.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080912/7a149906/attachment.html>


More information about the Python-list mailing list