Re: [web2py] how to return nothing

2015-10-14 Thread Dave S
On Wednesday, October 14, 2015 at 5:31:59 PM UTC-7, Dave S wrote: > > > > On Wednesday, October 14, 2015 at 3:27:31 PM UTC-7, Alex Glaros wrote: >> >> does anyone see anything wrong with the update syntax? >> >> def utility_change_column_name(): #used once in a while by programmer. >> Not used b

Re: [web2py] how to return nothing

2015-10-14 Thread Dave S
On Wednesday, October 14, 2015 at 3:27:31 PM UTC-7, Alex Glaros wrote: > > does anyone see anything wrong with the update syntax? > > def utility_change_column_name(): #used once in a while by programmer. Not > used by users. > for r in db.PostalCode: > db(db.PostalCode).update(r.cou

Re: [web2py] how to return nothing

2015-10-14 Thread Alex Glaros
does anyone see anything wrong with the update syntax? def utility_change_column_name(): #used once in a while by programmer. Not used by users. for r in db.PostalCode: db(db.PostalCode).update(r.countryCode = r.countryCodeFromGeoNames) return dict() am getting keyword can't be

Re: [web2py] how to return nothing

2015-10-14 Thread Tito Garrido
try: return dict() On Wed, Oct 14, 2015 at 6:43 PM, Alex Glaros wrote: > how to get function to return nothing? > > Goal is simply to avoid pages of records on html page as function runs > > def utility_change_column_name(): #used once in a while by programmer. > Not used by users. > for r in

[web2py] how to return nothing

2015-10-14 Thread Alex Glaros
how to get function to return nothing? Goal is simply to avoid pages of records on html page as function runs def utility_change_column_name(): #used once in a while by programmer. Not used by users. for r in db.PostalCode: db((r.update(r.countryCode = r.countryCodeFromGeoNames)) retu