xtuml/load.py
def load_metamodel(resource):
    '''
    Load and return a metamodel from a *resource*. The *resource* may be either
    a filename, or a list of filenames.
    
    Usage example:
    
    >>> metamodel = xtuml.load_metamodel(['schema.sql', 'data.sql'])
    '''
    if isinstance(resource, str):
        resource = [resource]
        
    loader = ModelLoader()
    for filename in resource:
        loader.filename_input(filename)
    
    return loader.build_metamodel()
def load_metamodel(resource):
    '''
    Load and return a metamodel from a *resource*. The *resource* may be either
    a filename, or a list of filenames.
    
    Usage example:
    
    >>> metamodel = xtuml.load_metamodel(['schema.sql', 'data.sql'])
    '''
    if isinstance(resource, str):
        resource = [resource]
        
    loader = ModelLoader()
    for filename in resource:
        loader.filename_input(filename)
    
    return loader.build_metamodel()
def load_metamodel ( resource ) : if isinstance ( resource , str ) : resource = [ resource ] loader = ModelLoader ( ) for filename in resource : loader . filename_input ( filename ) return loader . build_metamodel ( )
Load and return a metamodel from a *resource*. The *resource* may be either
    a filename, or a list of filenames.
    
    Usage example:
    
    >>> metamodel = xtuml.load_metamodel(['schema.sql', 'data.sql'])
Load and return a metamodel from a * resource * . The * resource * may be either a filename or a list of filenames . Usage example : >>> metamodel = xtuml . load_metamodel ( [ schema . sql data . sql ] )