Thank you! I do like that:
interval = 
db().select(db.t_admission_schedule.BEGINNING,db.t_admission_schedule.END_APP,orderby=~db.t_admission_schedule.END_APP).first()
if ((datetime.datetime.now().date()<interval.BEGINNING) | 
(datetime.datetime.now().date()>interval.END_APP)):
    raise HTTP(403)
One more question. Now I see "*403 FORBIDDEN*", but if I check code of page 
403.html I see only *403*. How can I redirect user on 403.html?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2a26d0f6-22b0-4da3-8ed5-7f8e1c0ff0a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to