예제 #1
0
파일: app_config.py 프로젝트: clsdaniel/tg2
    def setup_helpers_and_globals(self):
        """Add helpers and globals objects to the config.

        Override this method to customize the way that ``app_globals``
        and ``helpers`` are setup.

        """

        config['pylons.app_globals'] = self.package.lib.app_globals.Globals()
        g = config['pylons.app_globals']
        g.dotted_filename_finder = DottedFileNameFinder()
예제 #2
0
 def setup_helpers_and_globals(self):
     tg.config['tg.app_globals'] = self.globals
     g = tg.config['tg.app_globals']
     g.dotted_filename_finder = DottedFileNameFinder()