'take a category virtual path and return the module\'s name or the path untouched if not found'

def get_module_name_from_category(self, path):

    mod = self.categories.get_module_from_path(path)
    if mod:
        return mod.get_name()
    else:
        return path
