コード例 #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
ファイル: __init__.py プロジェクト: garrettmc/TGWikiTutorial
 def setup_helpers_and_globals(self):
     tg.config['tg.app_globals'] = self.globals
     g = tg.config['tg.app_globals']
     g.dotted_filename_finder = DottedFileNameFinder()