Did I find the right examples for you? yes no

All Samples(37)  |  Call(37)  |  Derive(0)  |  Import(0)

src/s/p/splunk-webframework-HEAD/server/splunkdj/loaders/template_loader.py   splunk-webframework(Download)
    def get_template_sources(self, template_name, template_dirs=None):
        if not template_dirs:
            template_dirs = app_template_dirs
        return AppDirLoader.get_template_sources(
            self, template_name, reversed(template_dirs))

src/o/p/OpenProximity-12.04.1/src/openproximity/template_loader.py   OpenProximity(Download)
    def get_template_sources(self, template_name, template_dirs=None):
        vals = list(
            Loader.get_template_sources(self, template_name, template_dirs)
        )
        vals.reverse()

src/d/j/django_layers-0.8/layers/loader.py   django_layers(Download)
            if prefix:
                if layers_dirs:
                    for filepath in self.get_template_sources(os.path.join(prefix, "templates", template_name), layers_dirs):
                        try:
                            with open(filepath, 'rb') as fp:
                                return (fp.read().decode(settings.FILE_CHARSET), filepath)
                        except IOError:
                            pass
                if templates_dirs:
                    for filepath in self.get_template_sources(os.path.join(prefix, template_name), templates_dirs):

src/a/p/appscale-HEAD/AppServer/lib/django-1.5/tests/regressiontests/templates/tests.py   appscale(Download)
                expected_sources = [os.path.abspath(s) for s in expected_sources]
            # Test the two loaders (app_directores and filesystem).
            func1 = lambda p, t: list(ad_loader.get_template_sources(p, t))
            func2 = lambda p, t: list(fs_loader.get_template_sources(p, t))
            for func in (func1, func2):

src/a/p/appscale-HEAD/AppServer/lib/django-1.4/tests/regressiontests/templates/tests.py   appscale(Download)
                expected_sources = [os.path.abspath(s) for s in expected_sources]
            # Test the two loaders (app_directores and filesystem).
            func1 = lambda p, t: list(ad_loader.get_template_sources(p, t))
            func2 = lambda p, t: list(fs_loader.get_template_sources(p, t))
            for func in (func1, func2):

src/a/p/appscale-HEAD/AppServer/lib/django-1.3/tests/regressiontests/templates/tests.py   appscale(Download)
                expected_sources = [os.path.normcase(os.path.abspath(s)) for s in expected_sources]
            # Test the two loaders (app_directores and filesystem).
            func1 = lambda p, t: list(ad_loader.get_template_sources(p, t))
            func2 = lambda p, t: list(fs_loader.get_template_sources(p, t))
            for func in (func1, func2):

src/a/p/appscale-HEAD/AppServer/lib/django-1.2/tests/regressiontests/templates/tests.py   appscale(Download)
                expected_sources = [os.path.normcase(os.path.abspath(s)) for s in expected_sources]
            # Test the two loaders (app_directores and filesystem).
            func1 = lambda p, t: list(ad_loader.get_template_sources(p, t))
            func2 = lambda p, t: list(fs_loader.get_template_sources(p, t))
            for func in (func1, func2):

src/l/e/lettuce-HEAD/tests/integration/lib/Django-1.3/tests/regressiontests/templates/tests.py   lettuce(Download)
                expected_sources = [os.path.normcase(os.path.abspath(s)) for s in expected_sources]
            # Test the two loaders (app_directores and filesystem).
            func1 = lambda p, t: list(ad_loader.get_template_sources(p, t))
            func2 = lambda p, t: list(fs_loader.get_template_sources(p, t))
            for func in (func1, func2):

src/l/e/lettuce-HEAD/tests/integration/lib/Django-1.2.5/tests/regressiontests/templates/tests.py   lettuce(Download)
                expected_sources = [os.path.normcase(os.path.abspath(s)) for s in expected_sources]
            # Test the two loaders (app_directores and filesystem).
            func1 = lambda p, t: list(ad_loader.get_template_sources(p, t))
            func2 = lambda p, t: list(fs_loader.get_template_sources(p, t))
            for func in (func1, func2):

src/l/a/latimes-appengine-template-0.022/appengine_template/google_appengine/lib/django_1_2/tests/regressiontests/templates/tests.py   latimes-appengine-template(Download)
                expected_sources = [os.path.normcase(os.path.abspath(s)) for s in expected_sources]
            # Test the two loaders (app_directores and filesystem).
            func1 = lambda p, t: list(ad_loader.get_template_sources(p, t))
            func2 = lambda p, t: list(fs_loader.get_template_sources(p, t))
            for func in (func1, func2):

  1 | 2 | 3 | 4  Next