131 Public method to handle the closing of a project. |
131 Public method to handle the closing of a project. |
132 """ |
132 """ |
133 if self.__serverProc is not None: |
133 if self.__serverProc is not None: |
134 self.__serverProcFinished() |
134 self.__serverProcFinished() |
135 |
135 |
136 # TODO: implement this correctly |
|
137 def supportedPythonVariants(self): |
136 def supportedPythonVariants(self): |
138 """ |
137 """ |
139 Public method to get the supported Python variants. |
138 Public method to get the supported Python variants. |
140 |
139 |
141 @return list of supported Python variants |
140 @return list of supported Python variants |
301 Private slot to start the Pyramid Web server. |
300 Private slot to start the Pyramid Web server. |
302 |
301 |
303 @param logging flag indicating to enable logging |
302 @param logging flag indicating to enable logging |
304 @type bool |
303 @type bool |
305 """ |
304 """ |
306 # TODO: implement this |
305 # TODO: implement this (flask run) |
307 |
306 |
308 def __serverProcFinished(self): |
307 def __serverProcFinished(self): |
309 """ |
308 """ |
310 Private slot connected to the finished signal. |
309 Private slot connected to the finished signal. |
311 """ |
310 """ |
315 ): |
314 ): |
316 self.__serverProc.terminate() |
315 self.__serverProc.terminate() |
317 QTimer.singleShot(2000, self.__serverProc.kill) |
316 QTimer.singleShot(2000, self.__serverProc.kill) |
318 self.__serverProc.waitForFinished(3000) |
317 self.__serverProc.waitForFinished(3000) |
319 self.__serverProc = None |
318 self.__serverProc = None |
|
319 |
|
320 def __runPythonShell(self): |
|
321 """ |
|
322 Private slot to start a Python console in the app context. |
|
323 """ |
|
324 # TODO: implement this (flask shell) |
|
325 |
|
326 ################################################################## |
|
327 ## slots below implement various debugging functions |
|
328 ################################################################## |
|
329 |
|
330 def __showRoutes(self): |
|
331 """ |
|
332 Private slot showing all URL dispatch routes. |
|
333 """ |
|
334 # TODO: implement this (flask routes) |