--- a/RefactoringRope/CodeAssistClient.py Sun Nov 11 17:44:55 2018 +0100 +++ b/RefactoringRope/CodeAssistClient.py Sun Nov 11 17:46:25 2018 +0100 @@ -30,25 +30,6 @@ """ Class implementing the code assist client interface to rope. """ - PictureIDs = { - "class": "?{0}".format(1), # Editor.ClassID - "_class": "?{0}".format(2), # Editor.ClassProtectedID - "__class": "?{0}".format(3), # Editor.ClassPrivateID - "instance": "?{0}".format(1), # Editor.ClassID - "_instance": "?{0}".format(2), # Editor.ClassProtectedID - "__instance": "?{0}".format(3), # Editor.ClassPrivateID - "function": "?{0}".format(4), # Editor.MethodID - "_function": "?{0}".format(5), # Editor.MethodProtectedID - "__function": "?{0}".format(6), # Editor.MethodPrivateID - "module": "?{0}".format(7), # Editor.AttributeID - "_module": "?{0}".format(8), # Editor.AttributeProtectedID - "__module": "?{0}".format(9), # Editor.AttributePrivateID - "None": "", - } - # The various ID values are a copy of the ones found in the Editor - # class in order to make this module/script independent from an - # installed eric - def __init__(self, host, port, idString, projectPath): """ Constructor @@ -181,8 +162,10 @@ proposalType = "__" + proposalType elif proposal.name.startswith("_"): proposalType = "_" + proposalType - completions.append( - proposal.name + self.PictureIDs[proposalType]) + completions.append({ + "Name": proposal.name, + "CompletionType": proposalType, + }) except Exception as err: errorDict = self.__handleRopeError(err)