@staticmethod<EOL><INDENT>def upload(csvpath, asset_manager_id=None, client_id=None):<DEDENT>
interface = interface_direct_csvpath(csvpath)<EOL>logging.config.dictConfig(DEFAULT_LOGGING)<EOL>logger = logging.getLogger(__name__)<EOL>if asset_manager_id is None:<EOL><INDENT>params = dict()<EOL><DEDENT>elif client_id is None:<EOL><INDENT>params = {'<STR_LIT>': asset_manager_id}<EOL><DEDENT>else:<EOL><INDENT>params = {'<STR_LIT>': asset_manager_id, '<STR_LIT>': client_id}<EOL><DEDENT>with open(csvpath) as csvfile:<EOL><INDENT>objs = csv_stream_to_objects(stream=csvfile, json_handler=Uploader.json_handler, params=params)<EOL><DEDENT>for obj in objs:<EOL><INDENT>interface.new(obj)<EOL>logger.info('<STR_LIT>')<EOL><DEDENT>
convert csv file rows to objects and insert;
           asset_manager_id and possibly client_id from the UI (login)