xtuml/load.py
def _populate_matching_class(metamodel, kind, names, values):
        '''
        Populate a *metamodel* with a class that matches the given *insert
        statement*.
        '''
        attributes = list()
        for name, value in zip(names, values):
            ty = guess_type_name(value)
            attr = (name, ty)
            attributes.append(attr)
                
        return metamodel.define_class(kind, attributes)
def _populate_matching_class(metamodel, kind, names, values):
        '''
        Populate a *metamodel* with a class that matches the given *insert
        statement*.
        '''
        attributes = list()
        for name, value in zip(names, values):
            ty = guess_type_name(value)
            attr = (name, ty)
            attributes.append(attr)
                
        return metamodel.define_class(kind, attributes)
def _populate_matching_class ( metamodel , kind , names , values ) : attributes = list ( ) for name , value in zip ( names , values ) : ty = guess_type_name ( value ) attr = ( name , ty ) attributes . append ( attr ) return metamodel . define_class ( kind , attributes )
Populate a *metamodel* with a class that matches the given *insert
        statement*.
Populate a * metamodel * with a class that matches the given * insert statement * .