whitespace cleanup,
[vuplus_dvbapp-plugin] / networkbrowser / src / MountManager.py
index 8a17d7f..43091ad 100755 (executable)
@@ -4,23 +4,20 @@ from __init__ import _
 from Screens.Screen import Screen\r
 from Screens.MessageBox import MessageBox\r
 from Screens.VirtualKeyBoard import VirtualKeyBoard\r
-from enigma import loadPNG, eListboxPythonMultiContent, gFont, eTimer\r
 from Components.Label import Label\r
 from Components.Pixmap import Pixmap\r
 from Components.ActionMap import ActionMap\r
-from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest\r
 from Components.Network import iNetwork\r
 from Components.Sources.List import List\r
 from Tools.LoadPixmap import LoadPixmap\r
 from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE\r
-from os import system, popen, path as os_path, listdir\r
+from os import path as os_path\r
 \r
 from MountView import AutoMountView\r
 from MountEdit import AutoMountEdit\r
 from AutoMount import iAutoMount, AutoMount\r
 from UserManager import UserManager\r
 \r
-\r
 class AutoMountManager(Screen):\r
        skin = """\r
                <screen name="AutoMountManager" position="90,140" size="560,350" title="AutoMountManager">\r
@@ -57,16 +54,16 @@ class AutoMountManager(Screen):
                self["ButtonRed"] = Pixmap()\r
                self["ButtonRedtext"] = Label(_("Close"))\r
                self["introduction"] = Label(_("Press OK to select."))\r
-               \r
+\r
                self.list = []\r
                self["config"] = List(self.list)\r
                self.updateList()\r
-               self.onClose.append(self.cleanup)       \r
+               self.onClose.append(self.cleanup)\r
                self.onShown.append(self.setWindowTitle)\r
 \r
        def setWindowTitle(self):\r
                self.setTitle(_("MountManager"))\r
-               \r
+\r
        def cleanup(self):\r
                iNetwork.stopRestartConsole()\r
                iNetwork.stopGetInterfacesConsole()\r
@@ -80,10 +77,9 @@ class AutoMountManager(Screen):
                self.list.append((_("Change hostname"),"hostname", _("Change the hostname of your Dreambox."), okpng))\r
                self["config"].setList(self.list)\r
 \r
-\r
        def exit(self):\r
                self.close()\r
-               \r
+\r
        def keyOK(self, returnValue = None):\r
                if returnValue == None:\r
                        returnValue = self["config"].getCurrent()[1]\r
@@ -95,12 +91,13 @@ class AutoMountManager(Screen):
                                self.userEdit()\r
                        elif returnValue is "hostname":\r
                                self.hostEdit()\r
+\r
        def addMount(self):\r
                self.session.open(AutoMountEdit, self.skin_path)\r
 \r
        def viewMounts(self):\r
                self.session.open(AutoMountView, self.skin_path)\r
-               \r
+\r
        def userEdit(self):\r
                self.session.open(UserManager, self.skin_path)\r
 \r
@@ -110,7 +107,7 @@ class AutoMountManager(Screen):
                        self.hostname = fp.read()\r
                        fp.close()\r
                        self.session.openWithCallback(self.hostnameCallback, VirtualKeyBoard, title = (_("Enter new hostname for your Dreambox")), text = self.hostname)\r
-       \r
+\r
        def hostnameCallback(self, callback = None):\r
                if callback is not None and len(callback):\r
                        fp = open('/etc/hostname', 'w+')\r
@@ -121,7 +118,7 @@ class AutoMountManager(Screen):
        def restartLan(self):\r
                iNetwork.restartNetwork(self.restartLanDataAvail)\r
                self.restartLanRef = self.session.openWithCallback(self.restartfinishedCB, MessageBox, _("Please wait while your network is restarting..."), type = MessageBox.TYPE_INFO, enable_input = False)\r
-                       \r
+\r
        def restartLanDataAvail(self, data):\r
                if data is True:\r
                        iNetwork.getInterfaces(self.getInterfacesDataAvail)\r