Orkut Gmail Calendar Documents Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
turbogears 2 and pylons db session differences
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
webguy7890  
View profile  
 More options Nov 21 2009, 1:20 am
From: webguy7890 <privacyinva...@gmail.com>
Date: Fri, 20 Nov 2009 11:50:24 -0800 (PST)
Local: Sat, Nov 21 2009 1:20 am
Subject: turbogears 2 and pylons db session differences
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


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google