[SQLObject] Appending ID for ForeignKey columns

2006-04-30 Thread Erik Stephens
Short of hacking up SQLObject, is there a way to customize the 'ID' string that gets appended when specifying ForeignKey columns? To better work with my legacy code, I would like to be able to refer to '_id' instead of 'ID'. Thanks a bunch, Erik -

Re: [SQLObject] defining __len__ on an SQLObject bad?

2006-04-30 Thread Oleg Broytmann
On Sun, Apr 30, 2006 at 12:42:20PM -0700, Justin wrote: > It seems that, if a SQLObject is part of a join, defining a custom > __len__ on it will cause that join to hang forever. Is this expected > behavior? It is not, I think. > If this isn't actually expected behavior, here's a script that >

[SQLObject] defining __len__ on an SQLObject bad?

2006-04-30 Thread Justin
It seems that, if a SQLObject is part of a join, defining a custom __len__ on it will cause that join to hang forever. Is this expected behavior? If so, I suggest that this be added to the documentation, as part of a list of "don't do these things, they'll break the way SQLObject works under the ho

[SQLObject] Dealing with legacy schemas

2006-04-30 Thread konrad Zielinski
Hi, I'm implementing an SQLObject layer over a legacy database and have come accross an interesting problem. I have a table of Object types. Such that each row in the table corresponds to an other table in the database and in effeect also correpsongs to a Class. There are many places in the da