def checkName(self, name, doRaise=True):
    cleanName = AVNUtil.clean_filename(name)
    if (name != cleanName):
        if doRaise:
            raise Exception(('name %s is invalid' % name))
        return False
    return True
def checkName(self, name, doRaise=True):
    cleanName = AVNUtil.clean_filename(name)
    if (name != cleanName):
        if doRaise:
            raise Exception(('name %s is invalid' % name))
        return False
    return True