TurboGears / tg2

Python web framework with full-stack layer implemented on top of a microframework core with support for SQL DBMS, MongoDB and Pluggable Applications
http://www.turbogears.org/
Other
806 stars 78 forks source link

"TypeError: No object (name: context) has been registered for this thread" when use config.__getitem__ in tgschedule #111

Closed hoang-rio closed 5 years ago

hoang-rio commented 5 years ago

I try to get 2 config use config.__getitem__ in tgschedule. This error throw in second line

smtp = config.__getitem__('smtp')
webpath = config.__getitem__('webpath') # error throw on this line