Maybe in a model file, something like:

import datetime
if request.now.date() > datetime.date(2011, 12, 20) and request.function != 
'closed':
    redirect(URL('default', 'closed'))

The 'closed' function in the default.py controller would display a message 
indicating the app is closed. Could also redirect to a static page, etc.

Anthony

On Saturday, December 3, 2011 8:59:37 PM UTC-5, Shiv wrote:
>
> Hi Team,
>
>
> Has any one tried to provide an expire date to the web2py application?
> I mean, if i set a date as 20-12-2011 then after that application should 
> not open.
>
> -- 
> Thanks & Regards
> Shiv
>  

Reply via email to