Thanks. Adjusted my code to match this paradigm. -- Melih O. http://www.onvural.net/melih
On May 18, 3:31 pm, Wyatt Baldwin <[email protected]> wrote: > Pylons expects the response content to be returned from the controller > action that is determined from your routing setup. The return value of > __after__ is discarded. > > So... which action is being called in your setup? That is the one you > need to `return render(...)` from. > > On May 18, 10:23 am, Melih Onvural <[email protected]> wrote: > > > > > > > I've got an API where I'm wrapping the api controllers into a > > APIBaseController class, and then using the __before__() method to > > setup some variables, and then using the __after__() method to return > > the resulting response. > > > 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? > > > -- > > Melih O.http://www.onvural.net/melih > > > -- > > 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 > > athttp://groups.google.com/group/pylons-discuss?hl=en. > > -- > 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 > athttp://groups.google.com/group/pylons-discuss?hl=en. -- 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.
