def update_level_production(self, irrad, name, prname, note=None):
    prname = prname.replace(' ', '_')
    pathname = add_extension(prname, '.json')
    src = os.path.join(paths.meta_root, irrad, 'productions', pathname)
    if os.path.isfile(src):
        self.update_productions(irrad, name, prname, note=note)
    else:
        self.warning_dialog('Invalid production name'.format(prname))
def update_level_production(self, irrad, name, prname, note=None):
    prname = prname.replace(' ', '_')
    pathname = add_extension(prname, '.json')
    src = os.path.join(paths.meta_root, irrad, 'productions', pathname)
    if os.path.isfile(src):
        self.update_productions(irrad, name, prname, note=note)
    else:
        self.warning_dialog('Invalid production name'.format(prname))