Date: Mon, 20 Aug 2007 01:11:32 GMT From: Andrew Turner <andrew@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 125369 for review Message-ID: <200708200111.l7K1BWWd031616@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=125369 Change 125369 by andrew@andrew_hermies on 2007/08/20 01:10:47 Disconnect from all the servers on close Affected files ... .. //depot/projects/soc2007/andrew-update/frontend/facund/controller.py#8 edit .. //depot/projects/soc2007/andrew-update/frontend/facund/gui/computer_model.py#8 edit .. //depot/projects/soc2007/andrew-update/frontend/facund/gui/main_window.py#13 edit Differences ... ==== //depot/projects/soc2007/andrew-update/frontend/facund/controller.py#8 (text+ko) ==== @@ -40,6 +40,12 @@ def run(self): self.__view.run() + def shutdown(self): + '''Disconnect's from all computers''' + computers = self.__computersModel.getComputers() + for c in computers: + computers[c].disconnect() + def onComputerTreeSelect(self, position): self.__currentDirectory = None self.__updateModel.empty() ==== //depot/projects/soc2007/andrew-update/frontend/facund/gui/computer_model.py#8 (text+ko) ==== @@ -74,6 +74,9 @@ name = self[position][0] return self.__computers[name] + def getComputers(self): + return self.__computers + def removeComputer(self, computer): '''Removes a computer from the computer tree''' computer_name = computer.getName() ==== //depot/projects/soc2007/andrew-update/frontend/facund/gui/main_window.py#13 (text+ko) ==== @@ -62,6 +62,7 @@ button.connect('clicked', self.connectionSave) def onQuit(self, data): + self.__controller.shutdown() gtk.main_quit() def newConnection(self, data):
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708200111.l7K1BWWd031616>