Merge "Remove the gettext wrapper of server_type."

This commit is contained in:
Jenkins
2012年08月29日 18:19:17 +00:00
committed by Gerrit Code Review

View File

@@ -39,7 +39,7 @@ from swift.proxy.controllers.base import Controller
class AccountController(Controller):
"""WSGI controller for account requests"""
server_type = _('Account')
server_type = 'Account'
def __init__(self, app, account_name, **kwargs):
Controller.__init__(self, app)

View File

@@ -87,7 +87,7 @@ def get_container_memcache_key(account, container):
class Controller(object):
"""Base WSGI controller class for the proxy"""
server_type = _('Base')
server_type = 'Base'
# Ensure these are all lowercase
pass_through_headers = []

View File

@@ -40,7 +40,7 @@ from swift.proxy.controllers.base import Controller, delay_denial, \
class ContainerController(Controller):
"""WSGI controller for container requests"""
server_type = _('Container')
server_type = 'Container'
# Ensure these are all lowercase
pass_through_headers = ['x-container-read', 'x-container-write',

View File

@@ -232,7 +232,7 @@ class SegmentedIterable(object):
class ObjectController(Controller):
"""WSGI controller for object requests."""
server_type = _('Object')
server_type = 'Object'
def __init__(self, app, account_name, container_name, object_name,
**kwargs):
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.