unfortunately the result is the same

On Jun 7, 11:06 am, "Diez B. Roggisch" <[email protected]> wrote:
> On Tuesday, June 07, 2011 10:53:10 am michelangelo wrote:
>
>
>
> > Hi guys,
> >    I'm trying to use jit interface to TG. The installation phase is ok
>
> > (using pip) and the initial load of the module works:
> > > paster shell development.ini
>
> > >>> import tw2.jit
>
> > >>> from tw2.jit.samples.chart import (DemoAreaChart, DemoBarChart,
> > >>> DemoPieChart)
>
> > Traceback (most recent call last):
> >   File "<console>", line 1, in <module>
> >   File "/usr/local/TG/tg2env/lib/python2.6/site-packages/tw2/jit/
> > samples/__init__.py", line 2, in <module>
> >     from tw2.jit.samples.chart import (DemoAreaChart, DemoBarChart,
> > DemoPieChart)
> >   File "/usr/local/TG/tg2env/lib/python2.6/site-packages/tw2/jit/
> > samples/chart.py", line 43, in <module>
> >     twc.core.request_local()
> > ['middleware'].controllers.register(DemoAreaChart,
> > KeyError: 'middleware'
>
> > >>> import tw2.core as twc
> > >>> twc.core.request_local()
>
> > {}
>
> > as you can see I cannot  import the DemoAreaChart and so on, the
> > reason seems to be the fact that twc.core.request_local() is empty.
>
> > any suggestion ?
>
> I never used the shell. So I don't know how much of the TG2 app stack it
> properly initializes. Did you try using it inside an actual controller & just
> serve that?
>
> Diez

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to