109 """ |
109 """ |
110 lname = name.lower() |
110 lname = name.lower() |
111 try: |
111 try: |
112 return self.__serviceInterfaces[lname] |
112 return self.__serviceInterfaces[lname] |
113 except KeyError: |
113 except KeyError: |
114 if lname not in ("coverage", "debugger", "filesystem", "project"): |
114 if lname not in ("coverage", "debugger", "filesystem"): |
115 raise ValueError(f"no such service supported ({name})") |
115 raise ValueError(f"no such service supported ({name})") |
116 else: |
116 else: |
117 # instantiate the service interface |
117 # instantiate the service interface |
118 if lname == "filesystem": |
118 if lname == "filesystem": |
119 from .EricServerFileSystemInterface import ( # noqa: I101 |
119 from .EricServerFileSystemInterface import ( # noqa: I101 |
133 from .EricServerCoverageInterface import ( # noqa: I101 |
133 from .EricServerCoverageInterface import ( # noqa: I101 |
134 EricServerCoverageInterface, |
134 EricServerCoverageInterface, |
135 ) |
135 ) |
136 |
136 |
137 self.__serviceInterfaces[lname] = EricServerCoverageInterface(self) |
137 self.__serviceInterfaces[lname] = EricServerCoverageInterface(self) |
138 elif lname == "project": |
|
139 # TODO: 'Project Interface' not implemented yet |
|
140 pass |
|
141 |
138 |
142 return self.__serviceInterfaces[lname] |
139 return self.__serviceInterfaces[lname] |
143 |
140 |
144 ####################################################################### |
141 ####################################################################### |
145 ## Methods for handling the server connection. |
142 ## Methods for handling the server connection. |