Hi!

On jún. 30, 09:56, durumdara <[email protected]> wrote:
> Hi!
>
>
> Have Pylons some before/after routines/methods?

I found __before__ and __after__ methods.

>
> And they are running also if I make some error (abort, redirect,
> unhandled exceptions)?

But __after__ not called if some exception happened...
Hmmm... As I see there is not mechanism to catch the DB destroying,
because:

If I wrote a wrapped object that have __del__ and I logged it to a
file, I saw that if some unhandled exception happened, the __del__ is
not executed. The __del__ executed only after fully working
requests...

Hmmmm....

dd

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to