|
a/Allura/allura/lib/utils.py |
|
b/Allura/allura/lib/utils.py |
|
... |
|
... |
31 |
else:
|
31 |
else:
|
32 |
content_type = 'application/octet-stream'
|
32 |
content_type = 'application/octet-stream'
|
33 |
return content_type
|
33 |
return content_type
|
34 |
|
34 |
|
35 |
class ConfigProxy(object):
|
35 |
class ConfigProxy(object):
|
|
|
36 |
'''Wrapper for loading config values at module-scope so we don't
|
|
|
37 |
have problems when a module is imported before tg.config is initialized
|
|
|
38 |
'''
|
36 |
|
39 |
|
37 |
def __init__(self, **kw):
|
40 |
def __init__(self, **kw):
|
38 |
self._kw = kw
|
41 |
self._kw = kw
|
39 |
|
42 |
|
40 |
def __getattr__(self, k):
|
43 |
def __getattr__(self, k):
|