Hi all,

Ever since I've moved my application onto a production server with
apache and mod_wsgi, I constantly get the UnboundExecutionError after
a certain amount of time. On my local workstation, everything seems to
work fine however once it's moved over to the production server, this
error occurs.

I've tried various things like using "meta.Session.mapper" as opposed
to "orm.mapper" in the __init__.py file in /models directory. I also
incorporate this code into the ___init__.py file:

def pylons_scope():
    import thread
    from pylons import config
    return "Pylons|%s|%s" % (thread.get_ident(), config._current_obj
())

...and then incorporating it like so:

sm = orm.sessionmaker(autoflush=True, transactional=True, bind=engine)

meta.engine = engine
meta.Session = orm.scoped_session(sm, pylons_scope)

I also tried enabling the "beaker.session" values in my .ini file but
that didn't seem to work either.

So I'm basically stuck at this point. I would appreciate any help on
this matter since I would like to continue using pylons and sqlalchemy
for future projects but need to make sure that it can pass this
hurdle.

Thanks,
Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to