The horizon.templatetags.sizeformat ModuleΒΆ

Template tags for displaying sizes

horizon.templatetags.sizeformat.diskgbformat(gb)[source]
horizon.templatetags.sizeformat.filesizeformat(bytes, filesize_number_format)[source]
horizon.templatetags.sizeformat.float_format(value)[source]
horizon.templatetags.sizeformat.int_format(value)[source]
horizon.templatetags.sizeformat.mb_float_format(mb)[source]

Takes a size value in mb, and prints returns the data in a saner unit.

horizon.templatetags.sizeformat.mbformat(mb)[source]

Previous topic

The horizon.templatetags.truncate_filter Module

Next topic

The horizon.utils.fields Module

This Page