def get_form(formcls): """ get form class according form class path or form class object """ from uliweb.utils.common import get_configrable_object return get_configrable_object(formcls, 'FORMS', Form)
def get_form_layout_class(form_layout_class): """ Get form layout class according form_layout_class path or layout class object """ from uliweb.utils.common import get_configrable_object return get_configrable_object(form_layout_class, 'FORM_LAYOUT_CLASSES', Layout)