[Twisted-Python] enterprise.row

Justin Ryan justin at gnubia.net
Mon Apr 7 09:46:25 EDT 2003

> This requires that you specify the names of the sequences used
> to generate the keys in the row class. Obviously this code isn't
> very general, since it assumes keys will always be generated by 
> sequences.

Can you subclass KeyFactory to do something like this I wonder?

> For your extensions which allow defaults, it might be better
> to insert the row and then use the 'lastval' function to find
> out what key was assigned to the row.

Not a bad idear - I missed this before sending my last post.  I beleive
that what I may do is allow for this in an abstract, db-independent way,
and then provide an example PSQLReflector that is db-dependent.  We
shall see ;p

Thanks again!


More information about the Twisted-Python mailing list