Re: [web2py] Changes in trunk when accessing a field in a row?

2012-08-29 Thread Massimo Di Pierro
Thanks for reporting it. It was a serious issue. On Wednesday, 29 August 2012 16:27:28 UTC-5, Daniel Gonzalez wrote: > > Thanks Massimo, that solved it! > > On Wednesday, August 29, 2012 11:07:03 PM UTC+2, Massimo Di Pierro wrote: >> >> Fixed in trunk! Thanks for reporting this is was a serious i

Re: [web2py] Changes in trunk when accessing a field in a row?

2012-08-29 Thread Daniel Gonzalez
Thanks Massimo, that solved it! On Wednesday, August 29, 2012 11:07:03 PM UTC+2, Massimo Di Pierro wrote: > > Fixed in trunk! Thanks for reporting this is was a serious issue. Please > check it. Both row['email'] and row.email should work now. Notice that > your compute callback returns always

Re: [web2py] Changes in trunk when accessing a field in a row?

2012-08-29 Thread Massimo Di Pierro
Fixed in trunk! Thanks for reporting this is was a serious issue. Please check it. Both row['email'] and row.email should work now. Notice that your compute callback returns always None. I assume that is intentional? On Wednesday, 29 August 2012 14:19:59 UTC-5, Daniel Gonzalez wrote: > > # Use

Re: [web2py] Changes in trunk when accessing a field in a row?

2012-08-29 Thread Anthony
> > It is just internal logic, creating some objects in several places. The > point is that usually row.email was evaluating to a string, and I was using > that to setup my objects. Now it is evaluating to (when showing with %s): > > (, 'email@example.com > ') > Are you saying even without

Re: [web2py] Changes in trunk when accessing a field in a row?

2012-08-29 Thread Massimo Di Pierro
Can you please test the latest trunk? If you still have the problem, can you post your code so that I can try reproduce it? On Wednesday, 29 August 2012 15:06:17 UTC-5, Daniel Gonzalez wrote: > > It is just internal logic, creating some objects in several places. The > point is that usually row.

Re: [web2py] Changes in trunk when accessing a field in a row?

2012-08-29 Thread Daniel Gonzalez
It is just internal logic, creating some objects in several places. The point is that usually row.email was evaluating to a string, and I was using that to setup my objects. Now it is evaluating to (when showing with %s): (, 'email.addr...@example.com') And this problem seems to be new in trunk

Re: [web2py] Changes in trunk when accessing a field in a row?

2012-08-29 Thread Anthony
What happens with "email" variable in the rest of that function? What does the function return? Anthony On Wednesday, August 29, 2012 3:19:59 PM UTC-4, Daniel Gonzalez wrote: > > # Use the authorization table for users > web2py_user_table = auth.settings.table_user_name > db.define_table( >

Re: [web2py] Changes in trunk when accessing a field in a row?

2012-08-29 Thread Daniel Gonzalez
# Use the authorization table for users web2py_user_table = auth.settings.table_user_name db.define_table( web2py_user_table, Field('email',unique=True), Field('wav_user_doc_id', length=128, compute=create_new_wav_user), Field('password', length=512,

Re: [web2py] Changes in trunk when accessing a field in a row?

2012-08-29 Thread Bruno Rocha
can you show the code? I am using db.table.field.compute = lambda row: row.otherfield On Wed, Aug 29, 2012 at 4:09 PM, Daniel Gonzalez wrote: > Hi, > > I have recently updated trunk. > > I am using a compute function when creating new entries. In the compute > function I access the field row

[web2py] Changes in trunk when accessing a field in a row?

2012-08-29 Thread Daniel Gonzalez
Hi, I have recently updated trunk. I am using a compute function when creating new entries. In the compute function I access the field row.email. Previously this was giving me the *value* of the field, now I just get a reference to "gluon.dal.Field". Is this expected? How can I access the valu