Exemple #1
0
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)
Exemple #2
0
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)
Exemple #3
0
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)
Exemple #4
0
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)