471,348 Members | 1,339 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

sqlobject question...

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

Dec 30 '07 #1
0 652

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Oleg Broytmann | last post: by
reply views Thread by Oleg Broytmann | last post: by
3 posts views Thread by Oleg Broytmann | last post: by
reply views Thread by Oleg Broytmann | last post: by
reply views Thread by Oleg Broytmann | last post: by
reply views Thread by Oleg Broytmann | last post: by
2 posts views Thread by Oleg Broytmann | last post: by
4 posts views Thread by petr.jakes.tpc | last post: by
reply views Thread by Oleg Broytmann | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.