#NEWLINE# def ex_convert_to_master( self , zone ) : #NEWLINE# #INDENT# '\n        Convert existent zone to master.\n\n        :param zone: Zone to convert.\n        :type  zone: :class:`Zone`\n\n        :rtype: Bool\n        ' #NEWLINE# action = '/app/dns/converttomaster.jsp?' #NEWLINE# params = { #NEWLINE# #INDENT# 'name' : zone . domain , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# self . connection . request ( action = action , params = params ) #NEWLINE# #UNINDENT# except ZonomiException : #NEWLINE# #INDENT# e = sys . exc_info ( ) [ 1 ] #NEWLINE# if ( 'ERROR: Could not find' in e . message ) : #NEWLINE# #INDENT# raise ZoneDoesNotExistError ( zone_id = zone . id , driver = self , value = e . message ) #NEWLINE# #UNINDENT# #UNINDENT# return True