File: //lib/python2.7/site-packages/leapp/models/utils.pyc
�
g��fc @ s d d l m Z d � Z d S( i����( t ModelMisuseErrorc C sG t | � t | � k r. t d | j � � n | t t | | � � � S( sc
Create an instance of the given model class and use the data to initialize the fields with it.
:param model_class: Model class to initialize with the given data
:param field_names: Names of the fields to be mapped from the tuple
:param data: Data to initialize the Model from
:type data: dict
:return: Instance of this class
sO Number of field names do not match number of tuple elements while initializing ( t lenR t __name__t dictt zip( t model_classt field_namest data( ( s6 /usr/lib/python2.7/site-packages/leapp/models/utils.pyt init_from_tuple s
N( t leapp.models.fieldsR R ( ( ( s6 /usr/lib/python2.7/site-packages/leapp/models/utils.pyt <module> s