I want to test the combination of a controller and its template, so I
did this:

        output, response = testutil.call_with_request
(cherrypy.root.a.b req)

        print 'output is %s' % output
        print 'response is %s' % response

I get an error AssertionError: This transaction has already gone
through ROLLBACK; begin another transaction.

I'm not sure, but I think that the transaction is getting closed
before my template is rendered. My controller returns database
selectResults objects to my template.

How can I get the template to render BEFORE the database is rolled
back?
--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to