src/eric7/RemoteServerInterface/EricServerInterface.py

branch
server
changeset 10630
552a790fd9bc
parent 10597
fbe93720ee9f
child 10723
88bec462b855
equal deleted inserted replaced
10629:b0d14cba79b1 10630:552a790fd9bc
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.

eric ide

mercurial