That tutorial is quite old, so still uses ToscaWidgets1, TurboGears2.2 now enables ToscaWidgets2 by default, that is probably the reason why you get the error with the per request storage.
To enabled both toscawidgets1 and toscawidgets2 replace the "base_config.prefer_toscawidgets2 = True" line inside config/app_cfg.py with: base_config.use_toscawidgets = True base_config.use_toscawidgets2 = True I'm not sure how much ToscaWidgets1 it's still maintained anyway, you probably want to look for a similar widgets for tw2. On Mon, Feb 18, 2013 at 10:56 PM, andrew b <[email protected]> wrote: > So I'm trying to use this tutorial to make a treeview of a list with > Jquery. > http://turbogears.org/2.1/docs/main/ToscaWidgets/Cookbook/JQueryTreeView.html > > But it looks like pylons.c.w.tree = myTree should be tmpl_context.tree = > myTree. And I don't understand where you are supposed to put the > ${tmpl_context.tree()} and then the Div with the list to make into a > tree. I tried putting the variable and the Div/List in the same template. > But, I get this error: TypeError: No object (name: ToscaWidgets > per-request storage) has been registered for this thread > > -- > 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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

