#NEWLINE# def _change_app_fullname( self , app_dir ) : #NEWLINE# #INDENT# 'Change application full name.\n\n        To avoid name conflict error during package import (when user\n        tries to import a few packages into the same tenant) need to change the\n        application name. For doing this need to replace following parts\n        in manifest.yaml\n        from\n            ...\n            FullName: app.name\n            ...\n            Classes:\n              app.name: app_class.yaml\n        to:\n            ...\n            FullName: <new_name>\n            ...\n            Classes:\n              <new_name>: app_class.yaml\n\n        :param app_dir: path to directory with Murano application context\n        ' #NEWLINE# new_fullname = self . generate_random_name ( ) #NEWLINE# manifest_file = os . path . join ( app_dir , 'manifest.yaml' ) #NEWLINE# manifest = self . _read_from_file ( manifest_file ) #NEWLINE# class_file_name = manifest [ 'Classes' ] [ manifest [ 'FullName' ] ] #NEWLINE# del manifest [ 'Classes' ] [ manifest [ 'FullName' ] ] #NEWLINE# manifest [ 'FullName' ] = new_fullname #NEWLINE# manifest [ 'Classes' ] [ new_fullname ] = class_file_name #NEWLINE# self . _write_to_file ( manifest_file , manifest_file )