sqlobject question...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bruce

    #1

    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

Working...