X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=unfold%2Fcollectstatic.py;h=0c6a1d2c7d997fb08b0f5ebedb249ccaf36eb30e;hb=6e286d340b35106b65a543ecd1a3c8086953f50e;hp=4fb3bbc935cdd42b086f07ce559cd1adede21d02;hpb=9618eb000646b2bcebde0e6c689473dc99d5fb10;p=myslice.git diff --git a/unfold/collectstatic.py b/unfold/collectstatic.py index 4fb3bbc9..0c6a1d2c 100644 --- a/unfold/collectstatic.py +++ b/unfold/collectstatic.py @@ -39,6 +39,7 @@ class PluginFinder(FileSystemFinder): return [os.path.join(dir, name, 'static') for name in os.listdir(dir) if os.path.isdir(os.path.join(dir, name))] +# as these are a django-specific notion class ThirdPartyFinder(BaseFinder): """ A static files finder that looks in the directory of each third-party @@ -47,10 +48,12 @@ class ThirdPartyFinder(BaseFinder): # third-party/MODULE/path/to/js extensions = { # PREFIX : EXTENSIONS - '' : ('.html',), +# third party stuff is not expected to provide templates, +# '' : ('.html',), 'js' : ('.js',), 'css': ('.css',), 'img': ('.png', '.ico',), + 'fonts' : ('.svg', '.eot', '.ttf', '.woff'), } def find(self, search_path, all=False): @@ -76,6 +79,7 @@ class ThirdPartyFinder(BaseFinder): matched_path = os.path.join(path, file) if not all: return matched_path + print 'ThirdPartyFinder, adding',matched_path matches.append(matched_path) return matches