comparison rhodecode/config/environment.py @ 2107:3ed6b94030ae beta

added logging info about loaded rcext
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 07 Mar 2012 00:26:25 +0200
parents 926f55b038bc
children 8ecfed1d8f8b
comparison
equal deleted inserted replaced
2106:95f1ed68cac1 2107:3ed6b94030ae
50 50
51 path = os.path.join(config['here'], 'rcextensions', '__init__.py') 51 path = os.path.join(config['here'], 'rcextensions', '__init__.py')
52 if os.path.isfile(path): 52 if os.path.isfile(path):
53 rcext = create_module('rc', path) 53 rcext = create_module('rc', path)
54 rhodecode.EXTENSIONS = rcext 54 rhodecode.EXTENSIONS = rcext
55 log.debug('Found rcextensions now loading %s...' % rcext)
55 # Setup cache object as early as possible 56 # Setup cache object as early as possible
56 import pylons 57 import pylons
57 pylons.cache._push_object(config['pylons.app_globals'].cache) 58 pylons.cache._push_object(config['pylons.app_globals'].cache)
58 59
59 # Create the Mako TemplateLookup, with the default auto-escaping 60 # Create the Mako TemplateLookup, with the default auto-escaping