> class TreeBark(SQLObject):
>     property1 = StringCol(length=150, varchar=True,title="Main Picture
> URL")
>     property2 = StringCol(length=100,varchar=True,title="Title or
> Short Description",alternateID=True,notNone=True)
> 
>     def gimmeDict(self):
>         d = TreeBark.__dict__
>         props = dict()
>         for a in d:
>             if type(d[a]) == property:
>                 props[a] = self.__dict__.get('_SO_val_%s' % a)
> 
>         props['id'] = self.id
>         return props

I usually find it much better to read TreeBark.sqlmeta.columnList than
__dict__.  You can even figure out what type of column it is from there.

Jason

Attachment: pgpRBfzBbpN5N.pgp
Description: PGP signature

Reply via email to