def save_content_type_object(repo, schema, uuid, data):
    """
    Save an object as a certain content type
    """
    storage_manager = StorageManager(repo)
    model_class = deserialize(schema,
                              module_name=schema['namespace'])
    model = model_class(data)
    commit = storage_manager.store(model, 'Updated via PUT request.')
    return commit, model
def save_content_type_object ( repo , schema , uuid , data ) : storage_manager = StorageManager ( repo ) model_class = deserialize ( schema , module_name = schema [ 'namespace' ] ) model = model_class ( data ) commit = storage_manager . store ( model , 'Updated via PUT request.' ) return commit , model
Save an object as a certain content type