On Sunday, February 1, 2015 at 12:13:54 AM UTC-8, Anthony Smith wrote: > > Hi Richard > > the trigger is T2.completed_date+T1.with_holding = T2.withhold_until > > I am reasonably new to web2py, can get though most things, but this has me. > > I think Richard was asking what event causes T2 to be updated. Does it happen, for instance, when someone visits a web page that display values from T2? Is it supposed to happen when someone completes a form updating T1? Should it happen on a periodic basis even if there is no user activity?
That said, Massimo's comments explain the way the arithmetic is done; Richard's question is about where the arithmetic code should be placed. (This is one of my favorite references: <URL:http://docs.python.org/2/library/datetime.html#timedelta-objects>) /dps -- 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.