[web2py] Re: Computed field does not get updated when creating database entry

2012-08-22 Thread Daniel Gonzalez
e ... i meant testing.py *model* On Wednesday, August 22, 2012 6:53:52 PM UTC+2, Anthony wrote: > > And now a small explanation of why I did not notice this at first: >> I had a define_table in a testing.py controller. I have removed this >> controller from my development repo, but since I am

[web2py] Re: Computed field does not get updated when creating database entry

2012-08-22 Thread Anthony
> > And now a small explanation of why I did not notice this at first: > I had a define_table in a testing.py controller. I have removed this > controller from my development repo, but since I am rsyncing to the web2py > applications directory, that old testing.py controller was still in the >

[web2py] Re: Computed field does not get updated when creating database entry

2012-08-22 Thread Daniel Gonzalez
Thanks guys, After all your comments I have found the problem: my agent database was defined *twice* in my models, one time with computed fields, the final time without them. I was getting very strange behavior and was quite confused - understandably. I have removed the phoney definition, and

[web2py] Re: Computed field does not get updated when creating database entry

2012-08-22 Thread Anthony
> > >> >> Field('password', 'password', length=512, >> compute=automatic_password,readable >> =False, label='Password'), >> >> The functions create_new_agent and automatic_password are part of my >> libraries. They are returning the expected types (strings in both cases) >> > > If you search

[web2py] Re: Computed field does not get updated when creating database entry

2012-08-22 Thread Johann Spies
On Wednesday, 22 August 2012 15:28:50 UTC+2, Johann Spies wrote: > > Hallo Daniel,I have defined a database table which has some fields which > must be computed: >> >> >> >> Field('password', 'password', length=512, >> compute=automatic_password,readable >> =False, label='Password'), >> >>

[web2py] Re: Computed field does not get updated when creating database entry

2012-08-22 Thread Johann Spies
Hallo Daniel,I have defined a database table which has some fields which must be computed: > > > > Field('password', 'password', length=512, > compute=automatic_password,readable > =False, label='Password'), > > The functions create_new_agent and automatic_password are part of my > libraries