ProjectFlask/Project.py

changeset 8
cfbd3a2757fd
parent 7
a140b2a8ba93
child 9
79094fb72c18
equal deleted inserted replaced
7:a140b2a8ba93 8:cfbd3a2757fd
210 210
211 def projectClosed(self): 211 def projectClosed(self):
212 """ 212 """
213 Public method to handle the closing of a project. 213 Public method to handle the closing of a project.
214 """ 214 """
215 if self.__serverDialog is not None: 215 for dlg in (self.__serverDialog, self.__routesDialog):
216 self.__serverDialog.close() 216 if dlg is not None:
217 dlg.close()
217 ## if self.__serverProc is not None: 218 ## if self.__serverProc is not None:
218 ## self.__serverProcFinished() 219 ## self.__serverProcFinished()
219 220
220 def supportedPythonVariants(self): 221 def supportedPythonVariants(self):
221 """ 222 """
473 474
474 def __showRoutes(self): 475 def __showRoutes(self):
475 """ 476 """
476 Private slot showing all URL dispatch routes. 477 Private slot showing all URL dispatch routes.
477 """ 478 """
478 # TODO: implement this (flask routes)
479 if self.__routesDialog is not None: 479 if self.__routesDialog is not None:
480 self.__routesDialog.close() 480 self.__routesDialog.close()
481 481
482 dlg = RoutesDialog() 482 dlg = RoutesDialog(self)
483 if dlg.showRoutes(self): 483 if dlg.showRoutes():
484 dlg.show() 484 dlg.show()
485 self.__routesDialog = dlg 485 self.__routesDialog = dlg

eric ide

mercurial