OpenSecurity/bin/vmmanager.pyw
changeset 193 8d5b7c9ff783
parent 183 a4ea59670b6b
child 212 59ebaa44c12c
     1.1 --- a/OpenSecurity/bin/vmmanager.pyw	Fri Jun 06 10:38:21 2014 +0100
     1.2 +++ b/OpenSecurity/bin/vmmanager.pyw	Thu Jun 12 14:08:36 2014 +0200
     1.3 @@ -18,7 +18,7 @@
     1.4  import shutil
     1.5  import stat
     1.6  import tempfile
     1.7 -from opensecurity_util import logger, setupLogger, OpenSecurityException
     1.8 +from opensecurity_util import logger, setupLogger, OpenSecurityException, showTrayMessage
     1.9  import ctypes
    1.10  import itertools
    1.11  import win32api
    1.12 @@ -636,6 +636,7 @@
    1.13      
    1.14      # handles browsing request    
    1.15      def handleBrowsingRequest(self):
    1.16 +        showTrayMessage('Starting Secure Browsing...', 7000)
    1.17          handler = BrowsingHandler(self)
    1.18          handler.start()
    1.19          return 'ok'
    1.20 @@ -823,6 +824,7 @@
    1.21                  time.sleep(3)
    1.22                  continue
    1.23              
    1.24 +            showTrayMessage('System changed.\nEvaluating...', 7000)
    1.25              logger.info("Something's changed")
    1.26              tmp_attached = self.attachedRSDs     
    1.27              for vm_name in tmp_attached.keys():
    1.28 @@ -848,6 +850,7 @@
    1.29              #create new vms for new devices if any
    1.30              new_ip = None
    1.31              for new_device in tmp_rsds.values():
    1.32 +                showTrayMessage('Mounting device...', 7000)
    1.33                  if (self.attachedRSDs and False) or (new_device not in self.attachedRSDs.values()):
    1.34                      new_sdvm = self.vmm.newSDVM()
    1.35                      self.vmm.storageAttach(new_sdvm)