Re: [web2py] ValueError - legacy database

2011-08-09 Thread Ramiro B. da Luz
Thank you Bruno. But this didn't solved my problem. Fortunately I figure out what it was. The problem was caused by a plugin, simple comments, I was not using it, just enabled everything, as I am just learning and testing, when I removed the plugin everything worked fine. On Mon, Aug 8, 2011 at 8

Re: [web2py] ValueError - legacy database

2011-08-08 Thread Bruno Rocha
I mean, this: Field('a_fon_codigo', 'integer', db_pgsql.t_fone) should be: Field('a_fon_codigo', db_pgsql.t_fone)

Re: [web2py] ValueError - legacy database

2011-08-08 Thread Bruno Rocha
You do not have to define field type when referencing. Field('fieldname', db.referencetable) No need to define as 'integer' http://zerp.ly/rochacbruno Em 08/08/2011 17:46, "Ramiro B. da Luz" escreveu: > I asked this in the irc channel but as I was leaving I pasted it here: > > hello. > I am usi

[web2py] ValueError - legacy database

2011-08-08 Thread Ramiro B. da Luz
I asked this in the irc channel but as I was leaving I pasted it here: hello. I am using web2py version Version 1.98.2 (2011-08-04 00:47:09) with a legacy postgreql database. When I do an insert using the databse administration or when I try to update a record I get an strange error. I notice that