Ejemplo n.º 1
0
    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()
Ejemplo n.º 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()