gears/environment.py
def save(self):
        """Save handled public assets to :attr:`root` directory."""
        for asset_attributes, absolute_path in self.list('**'):
            logical_path = os.path.normpath(asset_attributes.logical_path)
            check_asset = build_asset(self, logical_path, check=True)
            if check_asset.is_public:
                asset = build_asset(self, logical_path)
                source = bytes(asset)
                self.save_file(logical_path, source, asset.gzippable)
                if self.fingerprinting:
                    self.save_file(asset.hexdigest_path, source, asset.gzippable)
                    self.manifest.files[logical_path] = asset.hexdigest_path
        self.manifest.dump()
def save(self):
        """Save handled public assets to :attr:`root` directory."""
        for asset_attributes, absolute_path in self.list('**'):
            logical_path = os.path.normpath(asset_attributes.logical_path)
            check_asset = build_asset(self, logical_path, check=True)
            if check_asset.is_public:
                asset = build_asset(self, logical_path)
                source = bytes(asset)
                self.save_file(logical_path, source, asset.gzippable)
                if self.fingerprinting:
                    self.save_file(asset.hexdigest_path, source, asset.gzippable)
                    self.manifest.files[logical_path] = asset.hexdigest_path
        self.manifest.dump()
def save ( self ) : for asset_attributes , absolute_path in self . list ( '**' ) : logical_path = os . path . normpath ( asset_attributes . logical_path ) check_asset = build_asset ( self , logical_path , check = True ) if check_asset . is_public : asset = build_asset ( self , logical_path ) source = bytes ( asset ) self . save_file ( logical_path , source , asset . gzippable ) if self . fingerprinting : self . save_file ( asset . hexdigest_path , source , asset . gzippable ) self . manifest . files [ logical_path ] = asset . hexdigest_path self . manifest . dump ( )
Save handled public assets to :attr:`root` directory.
Save handled public assets to : attr : root directory .