Am Montag, 19. M=E4rz 2007 schrieb Oleg Broytmann:
> On Mon, Mar 19, 2007 at 04:48:27PM +0100, Ferdinand Gassauer wrote:
> > simplified (the PK's must be lpadded with '0' to the maxmum length of t=
> > PK) select pk1||pk2||pk3 as id, ... other columns....
> > IMHO idName could support this syntax.
> You can try to implement this, but I doubt it would be easy. SQLObject
> fetches rows from the DB by id:
> SELECT id FROM table WHERE condition;
> SELECT * FROM table WHERE id =3D ...;
> You have to change this, and change id autoincrement, and all that...
1) the soultion "concat of PK's" works for me, because sqlobject does=20
not "know" anything about the key, and the way I constructed it the key is=
in my case the rows are fetched with a where clause, which uses the first P=
column, so its fast too.
2) as this solution is mainly for views and other read only tables so there=
no need for autoincrement etc.
I am far away from being able to modify complex python scripts.=20
So what I could do is to send you a documentation for the workaround, if yo=
want to add this to http://sqlobject.org/SQLObject.html