Hi Johann, I recently update manually compute field. You have presented a better way, and still counter to monitor the process. Very nice!
Congratulations! Fabiano. 2014-07-10 10:39 GMT-03:00 Johann Spies <johann.sp...@gmail.com>: > Sorry, I sent it before finishing > > > #!/usr/bin/python > # -*- coding: utf-8 -*- > rows = db(db.urlop.id > 0).select(db.urlop.ilosc_dni, > db.termin_od, db.termin_do) > howmany = len(rows) > busy_with = 0 > for row in rows: > busywith += 1 > print 'busy with %d of %d' % (busywith, howmany) > row.update_record(ulosc_dni = db.urlop.ulosc_dni.compute(row)) > db.commit() > > > Regards > Johann > >> -- >> Because experiencing your loyal love is better than life itself, >> my lips will praise you. (Psalm 63:3) >> > > > > -- > Because experiencing your loyal love is better than life itself, > my lips will praise you. (Psalm 63:3) > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.