def get_yaml_text(self, path):
        if self.read_from_yaml_file:
            with open(path, 'r') as f:
                return f.read()
        else:
            self.dir = DirectoryStandalone(sysname=self.system_name)
            data = self.dir.lookup_by_path(path)
            # Return the first item
            for item in data:
                return (item.value['attributes']['definition'])
            return ''
Renames the table 'old_table_name' to 'table_name'.
dataset/ETHPy150Open ooici/pyon/pyon/core/interfaces/service_object_generator.py/ServiceObjectGenerator.get_yaml_text--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/South-1.0.2/south/db/generic.py/DatabaseOperations.rename_table