sqlobject question...
bruce
bedouglas at earthlink.net
Sat Dec 29 20:05:47 EST 2007
hi...
this continues my investigation of python/sqlobject, as it relates to the
need to have an id, which is auto-generated.
per various sites/docs on sqlobject, it appears that you can override the
id, by doing something similar to the following:
def foo(SQLObject):
def _init(self, id, connection=None):
id = str(id)
SQLObject._init(self, id, connection)
cat=StringCol()
dog=StringCol()
however, no matter what i do, i can't seem to insert anything into "id" so
that i can use the "id"!!!!
any thoughts/comments/pointers, code samples would be helpful!!!
thanks
More information about the Python-list
mailing list