'Initialize the design from a valid form data.'

def __init__(self, form=None, query_type=None):

    if (form is not None):
        self._data_dict = dict(query=normalize_form_dict(form, SQLdesign._QUERY_ATTRS))
        if (query_type is not None):
            self._data_dict['query']['type'] = query_type
