Thanks Florent.

I also wanted to mention that this problem is described in the
DBSprockets Installation documentation:
http://code.google.com/p/dbsprockets/wiki/Installation

cheers.
-chris

On Mar 4, 11:37 am, "Florent Aide" <[EMAIL PROTECTED]> wrote:
> On Tue, Mar 4, 2008 at 7:02 PM, Sanjiv <[EMAIL PROTECTED]> wrote:
>
> >  I tried using DBMechanic in a newly quickstarted project. I used the
> >  following controller code:
>
> >  from turbogears.database import metadata
> >  from dbsprockets.dbmechanic.frameworks.tg import DBMechanic
> >  from dbsprockets.saprovider import SAProvider
>
> >  class Root(controllers.RootController):
>
> >     dbmechanic = DBMechanic(SAProvider(metadata), '/dbmechanic')
>
> >  On pointing my browser tohttp://localhost:8080/dbmechanicI get the
> >  following error:-
>
> [...]
>
> >  Page handler: <bound method DBMechanic.index of
> >   File "/home/sanjiv/pytg/lib/python2.5/site-packages/Paste-1.6-
> >  py2.5.egg/paste/registry.py", line 182, in _current_obj
> >     'thread' % self.____name__)
> >  TypeError: No object (name: ToscaWidgets per-request storage) has been
> >  registered for this thread
>
> >  What am I doing wrong?
>
> >  Thanks
>
> You need to add
>
> toscawidgets.on = True
>
> to the app.cfg file in your project.
>
> and don't forget the next big thing:
>
> use
> tg.defaultview = 'genshi'
>
> in app.cfg
>
> Oh and last remark: do not post big tracebacks like this in the ML,
> usehttp://paste.turbogears.orgto paste your tracebacks and then post
> the resulting URL.
>
> Cheers,
> Florent.
--~--~---------~--~----~------------~-------~--~----~
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