Re: [web2py] License expiry date management

2018-04-12 Thread Prabhakar Shanmugam
Dear Richard and Anthony, Thank you for both of your responses. I got an idea, am glad to try it out. Thank you once again, let me try out in this direction. Regards, Prabhakar On Wed, Apr 11, 2018 at 8:57 PM, Anthony wrote: > And if you need that to happen automatically

Re: [web2py] License expiry date management

2018-04-11 Thread Anthony
And if you need that to happen automatically on a regular schedule, you can use the web2py scheduler: http://web2py.com/books/default/chapter/29/04/the-core#web2py-Scheduler. Anthony On Wednesday, April 11, 2018 at 10:52:03 AM UTC-4, Richard wrote: > > Something like that : > >

Re: [web2py] License expiry date management

2018-04-11 Thread Richard Vézina
Something like that : next_week_sunday_date = \ (request.now.date() + datetime.timedelta(days=7)) + datetime.timedelta(days=6 - request.now.weekday()) rows_with_records_of_software_license_that_will_end_the_next_sunday = db(db.table_name.field_date_name == next_week_sunday_date