On Thu, Jul 31, 2003 at 11:45:50AM +0200, Luc Stepniewski wrote:
| Hello,
|
| I tried (on PostgreSQL 7.3.3) to use the _fromDatabase=True feature to be able
| to use my already created tables (manually created, not with SQLObject).
| SQObject chokes on the parsing of the primary key (which is a serial defined
| type):
|
| ValueError: Unknown SQL builtin type: <type 'instance'> for
| nextval('public.societe_soc_id_seq'::text)
Its a bug yes. The solution is to find out what class
'nextval('public.societe_soc_id_seq'::text)' is (humm... I should put
that in the error message) and register a converter to it. There are
lots of examples in SQLBuilder.py and Converters.py, but I couldnt
catch all the possible classes that would slipt through the sqlRepr
function. I just added SQLObjectField yesterday, and a few more, but I
didn't added Field for example as I couldn't see where it could be used.
[]'s
--
Sidnei da Silva <si...@pl...>
dreamcatching :: making your dreams come true
http://dreamcatcher.homeunix.org
A year spent in artificial intelligence is enough to make one believe in God.
|