Thanks Anthony! request.is_scheduler == True now works under Windows for me 
too.

On Monday, October 3, 2016 at 11:01:03 AM UTC-5, Anthony wrote:
>
> We partially fixed the problem last year, but I guess no one tested it. I 
> have proposed a very simple fix in the newly created issue (seems to work 
> after a quick test on Windows).
>
> Anthony
>
> On Monday, October 3, 2016 at 5:46:26 AM UTC-4, Niphlod wrote:
>>
>> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to