I'm having the same issue, I'll provide more debug info if needed, all I did was install via setuptools in a virtual environment with the 4th prerelease...
On Aug 9, 7:45 pm, lmacken <[EMAIL PROTECTED]> wrote: > On Aug 4, 7:08 am, "Alberto Valverde" <[EMAIL PROTECTED]> wrote: > > > I forgot to add, that if you're using DBSprockets with latest tg2 HEAD you > > also need to bind the engine to the metadata in init_model since > > DBSprockets needs a bound metadata to work properly and tg2 no longer > > binds it for you. > > > def init_model(engine): > > DBSession.configure(bind=engine) # not really needed if engine is > > bound to metadata but anyway... > > metadata.bind = engine # <-- this, add this if using dbsprockets > > > Sorry for breaking your apps. > > When using the dbsprockets make_form primitive, I'm now getting this > error: > > File '/home/lmacken/code/virtualenv/tg2/lib/python2.5/site-packages/ > DBSprockets-0.5dev_r411-py2.5.egg/dbsprockets/primitives.py', line 85 > in validate_model > if len(model.:t values()[0].c.keys()) == 0: > AttributeError: 'ClassManager' object has no attribute 'mappers' > > Any ideas? > > luke --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
