Skip to content

Commit

Permalink
Mention possible need to sandwich middleware.
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgestar committed Nov 11, 2014
1 parent 5858c7a commit 4364cba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vumi/middleware/provider_setter.py
Expand Up @@ -16,7 +16,9 @@ class StaticProviderSettingMiddleware(TransportMiddleware):
.. note::
If you rely on the provider value in other middleware, please
order your middleware carefully.
order your middleware carefully. If another middleware requires the
provider for both inbound and outbound messages, you might need two
copies of this middleware (one on either side of the other middleware).
"""
def setup_middleware(self):
self.provider_value = self.config["provider"]
Expand Down Expand Up @@ -55,7 +57,9 @@ class AddressPrefixProviderSettingMiddleware(TransportMiddleware):
.. note::
If you rely on the provider value in other middleware, please
order your middleware carefully.
order your middleware carefully. If another middleware requires the
provider for both inbound and outbound messages, you might need two
copies of this middleware (one on either side of the other middleware).
"""
def setup_middleware(self):
prefixes = self.config["provider_prefixes"].items()
Expand Down

0 comments on commit 4364cba

Please sign in to comment.