#1185: controller method trying to flush the database session(sqlalchemy) even
if
exception occours
------------------------+---------------------------------------------------
Reporter: sanjay | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: unassigned | Version: 1.0b1
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by alberto):
>> 1. Will not clearing the session affect other requests, i.e. is session
not shared with other requests?
Nope. The session is wrapped by SessionContext which gives each thread
it's own session.
>> 2. Could not make out the use of adding this line:
cherrypy.request.my_exc = tg_exceptions
Take a look at tests/test_controllers.py. I used it to check if the
exception raised was the expected one
>>> ... it did not seem working. The behaviour remained unchanged.
Hmmm. I'll need to take a closer look at what is exactly happening when I
get a chance...
Alberto
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1185>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets?hl=en
-~----------~----~----~----~------~----~------~--~---