can you please file a bug on https://github.com/web2py/web2py/issues ? I'd like to keep track of it and fix ASAP
On Monday, October 3, 2016 at 5:45:21 AM UTC+2, Brian M wrote: > > Is there a reason why when something is run under the scheduler > request.is_scheduler = None rather than True? When you access > request.is_scheduler from outside of the scheduler you get False as one > would expect. The current None value seems strange/non-intuitive. > #this won't work > if request.is_scheduler: > #do special scheduler stuff > > #To really know if you're running under the scheduler you must use this > which makes no sense > if request.is_scheduler == None: > #do special scheduler stuff > > > This has been the case for a while and is still happening with the latest > git trunk > > > > -- 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.