I'm using SQLAlchemy-0.5.0beta4dev_r5017...

On Sun, Aug 17, 2008 at 6:35 PM, percious <[EMAIL PROTECTED]> wrote:

>
> Which version of SA are you using?  sprox might be 0.5 only at this
> point....
>
> sorry for the delayed response,
> chris
>
> On Aug 9, 8: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
-~----------~----~----~----~------~----~------~--~---

Reply via email to