Hi,

This is a bit difficult to explain... I need to make an app request
from within the app itself. The purpose is to allow for batch
processing of multiple http requests into one server call:

class MultiplerequestController(BaseController):
    def get_resources(self, resource_urls=None):
        responses = [self.app.get(resource_url) for resource_url in
resource_urls]
        return json.dumps(responses)

Is there a way to access the app instance from within the app itself?
Or, is there a better way to pass a url argument to the app from
inside the app?

Thanks,

Andres

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