~ubuntu-branches/ubuntu/trusty/horizon/trusty

« back to all changes in this revision

Viewing changes to openstack_dashboard/settings.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-03-31 17:31:49 UTC
  • mfrom: (1.1.38)
  • Revision ID: package-import@ubuntu.com-20140331173149-f28yjk2s8pt15fqj
Tags: 1:2014.1~rc1-0ubuntu1
* New upstream release candidate (LP: #1288245).
  - d/static/*: Refreshed assets for new upstream release.
* d/theme/*: Refresh Ubuntu theme against Icehouse templates (LP: #1291653).

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
# TODO(mrunge): remove after Icehouse
177
177
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
178
178
 
179
 
gettext_noop = lambda s: s
180
179
LANGUAGES = (
181
 
    ('en', gettext_noop('English')),
182
 
    ('en-au', gettext_noop('Australian English')),
183
 
    ('en-gb', gettext_noop('British English')),
184
 
    ('es', gettext_noop('Spanish')),
185
 
    ('fr', gettext_noop('French')),
186
 
    ('ja', gettext_noop('Japanese')),
187
 
    ('ko', gettext_noop('Korean (Korea)')),
188
 
    ('nl', gettext_noop('Dutch (Netherlands)')),
189
 
    ('pl', gettext_noop('Polish')),
190
 
    ('pt-br', gettext_noop('Portuguese (Brazil)')),
191
 
    ('zh-cn', gettext_noop('Simplified Chinese')),
 
180
    ('en', 'English'),
 
181
    ('en-au', 'Australian English'),
 
182
    ('en-gb', 'British English'),
 
183
    ('es', 'Spanish'),
 
184
    ('fr', 'French'),
 
185
    ('ja', 'Japanese'),
 
186
    ('ko', 'Korean (Korea)'),
 
187
    ('nl', 'Dutch (Netherlands)'),
 
188
    ('pl', 'Polish'),
 
189
    ('pt-br', 'Portuguese (Brazil)'),
 
190
    ('zh-cn', 'Simplified Chinese'),
192
191
)
193
192
LANGUAGE_CODE = 'en'
194
193
LANGUAGE_COOKIE_NAME = 'horizon_language'
196
195
USE_L10N = True
197
196
USE_TZ = True
198
197
 
199
 
OPENSTACK_KEYSTONE_DEFAULT_ROLE = 'Member'
 
198
OPENSTACK_KEYSTONE_DEFAULT_ROLE = '_member_'
200
199
 
201
200
DEFAULT_EXCEPTION_REPORTER_FILTER = 'horizon.exceptions.HorizonReporterFilter'
202
201
 
250
249
 
251
250
if DEBUG:
252
251
    logging.basicConfig(level=logging.DEBUG)
 
252
 
 
253
# during django reloads and an active user is logged in, the monkey
 
254
# patch below will not otherwise be applied in time - resulting in developers
 
255
# appearing to be logged out.  In typical production deployments this section
 
256
# below may be ommited, though it should not be harmful
 
257
from openstack_auth import utils as auth_utils
 
258
auth_utils.patch_middleware_get_user()