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 on a regular schedule

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 : > > next_week_sunda

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 ).sele

[web2py] License expiry date management

2018-04-11 Thread Prabhakar Shanmugam
Dear All, I have just started learning web2py and I have hands on in python. Please just give some pointers. Iam sure this might be a trivial question, but I thought during the learning process I will ask this trivial question. I was seeing if i can write a license expiry daet management app,