RefactoringRope/RefactoringClient.py

changeset 294
78e4a6823a98
parent 293
dd1c7ed6d880
child 302
2e853e2f2430
equal deleted inserted replaced
293:dd1c7ed6d880 294:78e4a6823a98
249 249
250 @param params dictionary containing the method parameters sent by 250 @param params dictionary containing the method parameters sent by
251 the server 251 the server
252 @type dict 252 @type dict
253 """ 253 """
254 # TODO: remove Subcommand handling
255 title = params["Title"] 254 title = params["Title"]
256 filename = params["FileName"] 255 filename = params["FileName"]
257 offset = params["Offset"] 256 offset = params["Offset"]
258 source = params["Source"] 257 source = params["Source"]
259 subcommand = params["Subcommand"]
260 258
261 errorDict = {} 259 errorDict = {}
262 location = None 260 location = None
263 261
264 import rope.contrib.findit 262 import rope.contrib.findit
270 except Exception as err: 268 except Exception as err:
271 errorDict = self.__handleRopeError(err) 269 errorDict = self.__handleRopeError(err)
272 270
273 result = { 271 result = {
274 "Title": title, 272 "Title": title,
275 "Subcommand": subcommand,
276 } 273 }
277 if location is not None: 274 if location is not None:
278 result["Location"] = [ 275 result["Location"] = [
279 location.resource.real_path, location.lineno 276 location.resource.real_path, location.lineno
280 ] 277 ]

eric ide

mercurial