You can redefine
response._caller= lambda a: a()
but that only wraps controllers, not views.


On Mar 23, 10:07 pm, Jonathan Lundell <jlund...@pobox.com> wrote:
> I'd like to use syslog <http://docs.python.org/library/syslog.html> from my 
> app. However, it's a .so on my system, so I can't see what it is and how it 
> works, exactly.
>
> So my question is: If I open syslog and use it, and don't close it, will it 
> get closed when my controller exits and the object is (presumably) destroyed?
>
> A related question: is there a hook by which I can guarantee to get called at 
> the end of a controller transaction? Or does that even make sense?

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to