Skip to content

Instantly share code, notes, and snippets.

@dsuch
Created June 16, 2013 00:42
Show Gist options
  • Save dsuch/5790219 to your computer and use it in GitHub Desktop.
Save dsuch/5790219 to your computer and use it in GitHub Desktop.
from zato.client import AnyServiceInvoker
class ZatoMiddleware(object):
def process_request(self, req):
req.zato_client = AnyServiceInvoker('http://localhost:17010',
'/django/sample', ('django-app', 'django-password'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment