versatileimagefield/mixins.py
def build_filters_and_sizers(self, ppoi_value, create_on_demand):
        """Build the filters and sizers for a field."""
        name = self.name
        if not name and self.field.placeholder_image_name:
            name = self.field.placeholder_image_name
        self.filters = FilterLibrary(
            name,
            self.storage,
            versatileimagefield_registry,
            ppoi_value,
            create_on_demand
        )
        for (
            attr_name,
            sizedimage_cls
        ) in iteritems(versatileimagefield_registry._sizedimage_registry):
            setattr(
                self,
                attr_name,
                sizedimage_cls(
                    path_to_image=name,
                    storage=self.storage,
                    create_on_demand=create_on_demand,
                    ppoi=ppoi_value
                )
            )
def build_filters_and_sizers(self, ppoi_value, create_on_demand):
        name = self.name
        if not name and self.field.placeholder_image_name:
            name = self.field.placeholder_image_name
        self.filters = FilterLibrary(
            name,
            self.storage,
            versatileimagefield_registry,
            ppoi_value,
            create_on_demand
        )
        for (
            attr_name,
            sizedimage_cls
        ) in iteritems(versatileimagefield_registry._sizedimage_registry):
            setattr(
                self,
                attr_name,
                sizedimage_cls(
                    path_to_image=name,
                    storage=self.storage,
                    create_on_demand=create_on_demand,
                    ppoi=ppoi_value
                )
            )
def build_filters_and_sizers ( self , ppoi_value , create_on_demand ) : name = self . name if not name and self . field . placeholder_image_name : name = self . field . placeholder_image_name self . filters = FilterLibrary ( name , self . storage , versatileimagefield_registry , ppoi_value , create_on_demand ) for ( attr_name , sizedimage_cls ) in iteritems ( versatileimagefield_registry . _sizedimage_registry ) : setattr ( self , attr_name , sizedimage_cls ( path_to_image = name , storage = self . storage , create_on_demand = create_on_demand , ppoi = ppoi_value ) )
Build the filters and sizers for a field.
Build the filters and sizers for a field .