artefactual/archivematica — pull request #114 by Hwesta (2014-09-09 23:07:10+00:00)
Title: DBFunctions: Fix Event creation

refs #4901

With passing parameters directly to the DB, do not use string 'NULL' instead of None/NULL. Remove this fallback from insertIntoEvents, as getAgentForFileUUID return None by default. Actual agent values do not need to be double quoted, so just return the value instead of the string with quotes around it.