If websetup.py is using
    from tg import config
replace that line by
    from tg.configuration import config

This is fixed in SVN.

Gustavo.

On Tuesday 19 August 2008 21:36:23 Domingo Aguilera wrote:
> I've just checked out the sqlalchemy , generated a tg2 project ( algo
> a sqlalchemy activated pylons project ) and in both cases it worked.
> It seems some changes to sqlalchemy/util.py make that possible.
>
> I only have a problem of different kind when issuing paster setup-app
> development.ini for a project  with identity support.  There' s a
> problem in websetup.py in line 20.
>
> model.metadata.create_all(bind=config['pylons.app_globals'].sa_engine)
>
> It seems as if config is only available a level below.  I changed the
> line to ...
>
> model.metadata.create_all(bind=config.config['pylons.app_globals'].sa_engin
>e)
>
> and the model was created but the setup-app process gave another error
> similar to the previous one.
>
> Any hint on what's causing this?
>
> BTW , I am using tg2 trunk , sqlalchemy trunk and pylons latest from
> mercurial repository.
>
> Domingo Aguilera
>
> On Aug 19, 7:47 am, Domingo Aguilera <[EMAIL PROTECTED]>
>
> wrote:
> > Some changes on sqlalchemy trunk are making neither tg2 nor pylons
> > work.
> >
> > Thread adjustments that impact orm.session and pooling.
> >
> > Domingo Aguilera
>
> 

-- 
Gustavo Narea.
General Secretary. GNU/Linux Matters.
http://www.gnulinuxmatters.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to turbogears-trunk@googlegroups.com
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