sqlobject question...

B

bruce

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top