Here's the situation.  We have several servers mounted as apps
(actually turbogears)
/c1
/c2
/c3

and we want make requests between them i.e.

/c1/meth1 --> /c2/meth2

through the use of a smart http  request object

class C1:
   def meth1(self):
        ...
        http.get_request ('/c2/meth2')

We can simply use httplib2 to make the request and send it out, but I
wondering if it was possible
to capture and send it internally for handling.  Note in our system
sometime C2 might be on another machine/pylons process  so we would
like to fail over to an actual http request.


I was thinking I could just grab the top level pylons app object and
make the request, but I can't find a reference to it.
PasteScript:serve.py has it as a local variable for the final app
create so I can't seem to access it.  I tried grabbing an intermediate
app and wrapping it webob.TestApp, but I am always getting an error
about an unkown dispatch to  /_test_vars.

Anybody have any comments (i.e. this is a bad idea because).. or
suggestions on how to make this happen?

Thanks,
K

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