Hello,
TGScheduler works on its own. It is not linked to any user request so
you can't access to request or anything related to the user interface.
Le 12/10/2014 13:32, [email protected] a écrit :
Hi
I'm using TurboGears 2.3
I'm trying to schedule a boot up task with TGScheduler - Inside my
task i'm trying to get the value of "wsgi.url_scheme" from
request.environ.
Code inside the task:
||
...
scheme =request.environ.get("wsgi.url_scheme")
...
When I run this code as a user on my webapp, say
127.0.0.1:8080/testUrlScheme/. it works as expected
My problem - when i let TGScheduler run that code i get the following
error:
>>{TypeError} No object (name: request) has been registered for this thread
What is the problem, I don't understand much about threads..
Thanks for the help
--
You received this message because you are subscribed to the Google
Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.