feincms.utils — General utilities

feincms.utils.get_object(path[, fail_silently])

Helper function which can be used to import a python object. path should be the absolute dotted path to the object. You can optionally pass fail_silently=True if the function should not raise an Exception in case of a failure to import the object:

MyClass = get_object('module.MyClass')

myfunc = get_object('anothermodule.module2.my_function', fail_silently=True)
feincms.utils.collect_dict_values(data)

Converts a list of 2-tuples to a dict.

Previous topic

feincms.models.Base — CMS base class

Next topic

Prefetching data for a list of objects from the database

This Page