#NEWLINE# @ classmethod #NEWLINE# def new_xform( cls , form_data ) : #NEWLINE# #INDENT# form_id = ( extract_meta_instance_id ( form_data ) or unicode ( uuid . uuid4 ( ) ) ) #NEWLINE# return XFormInstanceSQL ( form_id = form_id , xmlns = form_data . get ( '@xmlns' ) , received_on = datetime . datetime . utcnow ( ) , user_id = extract_meta_user_id ( form_data ) )