~styluseater/swift/lp610583

« back to all changes in this revision

Viewing changes to swift/auth/server.py

  • Committer: Tarmac
  • Author(s): Monty Taylor
  • Date: 2010-07-26 15:27:29 UTC
  • mfrom: (40.1.1 fix-pep8)
  • Revision ID: hudson@openstack.org-20100726152729-4dz6gc11ky2qvffi
Fixed PEP8 warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
            try:
141
141
                conn = None
142
142
                conn = http_connect(node['ip'], node['port'], node['device'],
143
 
                        partition, 'PUT', '/'+account_name, headers)
 
143
                        partition, 'PUT', '/' + account_name, headers)
144
144
                source = conn.getresponse()
145
145
                statuses.append(source.status)
146
146
                if source.status >= 500:
358
358
        :param request: webob.Request object
359
359
        """
360
360
        result = self.recreate_accounts()
361
 
        return Response(result, 200, request = request)
 
361
        return Response(result, 200, request=request)
362
362
 
363
363
    def handle_auth(self, request):
364
364
        """
438
438
                                          'x-storage-token': token,
439
439
                                          'x-storage-url': url})
440
440
 
441
 
 
442
441
    def handleREST(self, env, start_response):
443
442
        """
444
443
        Handles routing of ReST requests. This handler also logs all requests.
452
451
            logged_headers = '\n'.join('%s: %s' % (k, v)
453
452
                for k, v in req.headers.items()).replace('"', "#042")
454
453
        start_time = time()
455
 
        # Figure out how to handle the request 
 
454
        # Figure out how to handle the request
456
455
        try:
457
456
            if req.method == 'GET' and req.path.startswith('/v1') or \
458
457
                    req.path.startswith('/auth'):