Hi all,

I am currently having a problem with loading farmdev fixtures in my
functional tests.  Kumar mentioned that he ran into the problem with
Pylons, and recommend that I use meta.Session.remove() to clear the
session between tests.

In Pylons, they recommend that you do the following in the lib/
base.py:

        try:
            return WSGIController.__call__(self, environ,
start_response)
        finally:
            meta.Session.remove()


But in Turbogears, I noticed that DBSession is not initialized within
the init_model method (TG also doesn't use the metadata object).  Why
is that?  I am curious on what the benefits are for each approach.
Also, how do I clear the session?  Many thanks!

Cheers,
Steve

--

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=.


Reply via email to