On Tue, May 18, 2010 at 12:23 PM, Melih Onvural <[email protected]>wrote:

> However, it looks as if I do:
>
> def __after__(self):
>     return render("/api/apiresponse.xml")
>
> It isn't actually pushing it back as the response to the call. Is this
> possible with Pylons?
>

I think Pylons expects __call__() to return the response. You could hijack
the flow, I expect... but what about simply making the __call__ two stage?

def __call__(self):
      self.__real_call__()
      return self.__after_call__()

Then you can use __after__ for cleanup, as is intended.

-- 
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