8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 import os |
12 import os |
13 import sys |
|
14 |
13 |
15 from PyQt5.QtCore import pyqtSlot, QCoreApplication, QTimer |
14 from PyQt5.QtCore import pyqtSlot, QCoreApplication, QTimer |
16 |
15 |
17 from E5Gui.E5Application import e5App |
16 from E5Gui.E5Application import e5App |
18 |
17 |
19 # TODO: eliminate this |
18 from .JsonServer import JsonServer |
20 sys.path.insert(0, os.path.dirname(__file__)) |
|
21 |
|
22 from JsonServer import JsonServer |
|
23 |
19 |
24 import Globals |
20 import Globals |
25 import Preferences |
21 import Preferences |
26 |
22 |
27 |
23 |
133 |
129 |
134 def __processCompletionsResult(self, result): |
130 def __processCompletionsResult(self, result): |
135 """ |
131 """ |
136 Private method to process the completions sent by the client. |
132 Private method to process the completions sent by the client. |
137 |
133 |
138 @param result dictionary containg the result sent by the client |
134 @param result dictionary containing the result sent by the client |
139 @type dict |
135 @type dict |
140 """ |
136 """ |
141 if "Error" in result: |
137 if "Error" in result: |
142 self.__completions = [] |
138 self.__completions = [] |
143 else: |
139 else: |
221 ####################################################################### |
217 ####################################################################### |
222 |
218 |
223 def handleCall(self, method, params): |
219 def handleCall(self, method, params): |
224 """ |
220 """ |
225 Public method to handle a method call from the client. |
221 Public method to handle a method call from the client. |
226 |
|
227 Note: This is an empty implementation that must be overridden in |
|
228 derived classes. |
|
229 |
222 |
230 @param method requested method name |
223 @param method requested method name |
231 @type str |
224 @type str |
232 @param params dictionary with method specific parameters |
225 @param params dictionary with method specific parameters |
233 @type dict |
226 @type dict |