Permalink
Browse files

fixed unawsome indention issue

  • Loading branch information...
1 parent 1d401f7 commit 9a10d89d7431daf989d44d8c470229dec230ffc1 @montylounge committed Sep 5, 2009
Showing with 18 additions and 20 deletions.
  1. +18 −20 sugar/middleware/awesome.py
@@ -17,29 +17,27 @@ class AwesomeMiddleware(object):
"""
- def __init__(self):
- self.is_awesome = True
+ def __init__(self):
+ self.is_awesome = True
- #yes, you can override with your own awesomeness.
- self.awesomeness = getattr(settings, 'AWESOMENESS', AWESOMENESS)
+ #yes, you can override with your own awesomeness.
+ self.awesomeness = getattr(settings, 'AWESOMENESS', AWESOMENESS)
- def __process_awesome_response(self, request, response):
- """
- Handles rendering the awesome.
+ def __process_awesome_response(self, request, response):
+ """
+ Handles rendering the awesome.
- Private access because not everyone method can be this awesome.
+ Private access because not everyone method can be this awesome.
- """
- response.content = _END_BODY_RE.sub(smart_str('<body\\1>' + self.awesomeness), response.content)
- return response
-
- def process_response(self, request, response):
- """
- The out-of-the-box "process_response" method isn't awesome enough,
- so we hand it off to the private _process_awesome_response method which
- is obviously much more awesome than "process_response"
-
- """
- return self.__process_awesome_response(request, response)
+ """
+ response.content = _END_BODY_RE.sub(smart_str('<body\\1>' + self.awesomeness), response.content)
+ return response
+ def process_response(self, request, response):
+ """
+ The out-of-the-box "process_response" method isn't awesome enough,
+ so we hand it off to the private _process_awesome_response method which
+ is obviously much more awesome than "process_response"
+ """
+ return self.__process_awesome_response(request, response)

0 comments on commit 9a10d89

Please sign in to comment.