Python django.contrib.staticfiles.utils.get_files() Examples

The following are 20 code examples of django.contrib.staticfiles.utils.get_files(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module django.contrib.staticfiles.utils , or try the search function .
Example #1
Source File: finders.py    From openhgsenti with Apache License 2.0 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all app storages.
        """
        for storage in six.itervalues(self.storages):
            if storage.exists(''):  # check if storage location exists
                for path in utils.get_files(storage, ignore_patterns):
                    yield path, storage 
Example #2
Source File: static_finders.py    From tethys with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all locations.
        """
        for prefix, root in self.locations:
            storage = self.storages[root]
            for path in utils.get_files(storage, ignore_patterns):
                yield path, storage 
Example #3
Source File: finders.py    From django-plotly-dash with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        for component_name in self.locations:
            storage = self.storages[component_name]
            for path in get_files(storage, ignore_patterns + self.ignore_patterns):
                yield path, storage 
Example #4
Source File: finders.py    From django-plotly-dash with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        for component_name in self.locations:
            storage = self.storages[component_name]
            for path in get_files(storage, ignore_patterns + self.ignore_patterns):
                yield path, storage 
Example #5
Source File: finders.py    From django-plotly-dash with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        for component_name in self.locations:
            storage = self.storages[component_name]
            for path in get_files(storage, ignore_patterns + self.ignore_patterns):
                yield path, storage 
Example #6
Source File: finders.py    From ecommerce with GNU Affero General Public License v3.0 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all theme storages.
        """
        for storage in six.itervalues(self.storages):
            if storage.exists(''):  # check if storage location exists
                for path in utils.get_files(storage, ignore_patterns):
                    yield path, storage 
Example #7
Source File: finders.py    From python2017 with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files of the storage.
        """
        for path in utils.get_files(self.storage, ignore_patterns):
            yield path, self.storage 
Example #8
Source File: finders.py    From python2017 with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all app storages.
        """
        for storage in six.itervalues(self.storages):
            if storage.exists(''):  # check if storage location exists
                for path in utils.get_files(storage, ignore_patterns):
                    yield path, storage 
Example #9
Source File: finders.py    From python2017 with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all locations.
        """
        for prefix, root in self.locations:
            storage = self.storages[root]
            for path in utils.get_files(storage, ignore_patterns):
                yield path, storage 
Example #10
Source File: finders.py    From openhgsenti with Apache License 2.0 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files of the storage.
        """
        for path in utils.get_files(self.storage, ignore_patterns):
            yield path, self.storage 
Example #11
Source File: finders.py    From GTDWeb with GNU General Public License v2.0 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all locations.
        """
        for prefix, root in self.locations:
            storage = self.storages[root]
            for path in utils.get_files(storage, ignore_patterns):
                yield path, storage 
Example #12
Source File: finders.py    From openhgsenti with Apache License 2.0 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all locations.
        """
        for prefix, root in self.locations:
            storage = self.storages[root]
            for path in utils.get_files(storage, ignore_patterns):
                yield path, storage 
Example #13
Source File: finders.py    From Hands-On-Application-Development-with-PyCharm with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files of the storage.
        """
        for path in utils.get_files(self.storage, ignore_patterns):
            yield path, self.storage 
Example #14
Source File: finders.py    From Hands-On-Application-Development-with-PyCharm with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all app storages.
        """
        for storage in self.storages.values():
            if storage.exists(''):  # check if storage location exists
                for path in utils.get_files(storage, ignore_patterns):
                    yield path, storage 
Example #15
Source File: finders.py    From Hands-On-Application-Development-with-PyCharm with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all locations.
        """
        for prefix, root in self.locations:
            storage = self.storages[root]
            for path in utils.get_files(storage, ignore_patterns):
                yield path, storage 
Example #16
Source File: finders.py    From bioforum with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files of the storage.
        """
        for path in utils.get_files(self.storage, ignore_patterns):
            yield path, self.storage 
Example #17
Source File: finders.py    From bioforum with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all app storages.
        """
        for storage in self.storages.values():
            if storage.exists(''):  # check if storage location exists
                for path in utils.get_files(storage, ignore_patterns):
                    yield path, storage 
Example #18
Source File: finders.py    From bioforum with MIT License 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all locations.
        """
        for prefix, root in self.locations:
            storage = self.storages[root]
            for path in utils.get_files(storage, ignore_patterns):
                yield path, storage 
Example #19
Source File: finders.py    From GTDWeb with GNU General Public License v2.0 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files of the storage.
        """
        for path in utils.get_files(self.storage, ignore_patterns):
            yield path, self.storage 
Example #20
Source File: finders.py    From GTDWeb with GNU General Public License v2.0 5 votes vote down vote up
def list(self, ignore_patterns):
        """
        List all files in all app storages.
        """
        for storage in six.itervalues(self.storages):
            if storage.exists(''):  # check if storage location exists
                for path in utils.get_files(storage, ignore_patterns):
                    yield path, storage