~swift/swift/omega-1.4.2-1

« back to all changes in this revision

Viewing changes to swift/proxy/server.py

  • Committer: Tarmac
  • Author(s): gholt
  • Date: 2011-04-16 06:07:46 UTC
  • mfrom: (276.1.1 pep8yetagain)
  • Revision ID: tarmac-20110416060746-km1jlzczrur0vhp8
PEP8 Fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1325
1325
            if value[0].lower().startswith('x-account-meta-'))
1326
1326
        if self.app.memcache:
1327
1327
            self.app.memcache.delete('account%s' % req.path_info.rstrip('/'))
1328
 
        return self.make_requests(req, self.app.account_ring, account_partition,
1329
 
                    'PUT', req.path_info, [headers] * len(accounts))
 
1328
        return self.make_requests(req, self.app.account_ring,
 
1329
            account_partition, 'PUT', req.path_info, [headers] * len(accounts))
1330
1330
 
1331
1331
    @public
1332
1332
    def POST(self, req):
1342
1342
            if value[0].lower().startswith('x-account-meta-'))
1343
1343
        if self.app.memcache:
1344
1344
            self.app.memcache.delete('account%s' % req.path_info.rstrip('/'))
1345
 
        return self.make_requests(req, self.app.account_ring, account_partition,
1346
 
                    'POST', req.path_info, [headers] * len(accounts))
 
1345
        return self.make_requests(req, self.app.account_ring,
 
1346
            account_partition, 'POST', req.path_info,
 
1347
            [headers] * len(accounts))
1347
1348
 
1348
1349
    @public
1349
1350
    def DELETE(self, req):
1356
1357
                   'X-CF-Trans-Id': self.trans_id}
1357
1358
        if self.app.memcache:
1358
1359
            self.app.memcache.delete('account%s' % req.path_info.rstrip('/'))
1359
 
        return self.make_requests(req, self.app.account_ring, account_partition,
1360
 
                    'DELETE', req.path_info, [headers] * len(accounts))
 
1360
        return self.make_requests(req, self.app.account_ring,
 
1361
            account_partition, 'DELETE', req.path_info,
 
1362
            [headers] * len(accounts))
1361
1363
 
1362
1364
 
1363
1365
class BaseApplication(object):