Logo Search packages:      
Sourcecode: mago version File versions  Download package

def mago::application::ubuntu::UpdateManager::open (   self,
  dist_upgrade = False 
)

It opens the update-manager application and raises an error if the application
didn't start properly.

Definition at line 100 of file ubuntu.py.

00100                                       :
        """
        It opens the update-manager application and raises an error if the application
        didn't start properly.

        """

        if dist_upgrade:
            ldtp.launchapp(self.LAUNCHER, ['-d'], 0)
            response = ldtp.waittillguiexist(self.name, '', 20)
    
            if response == 0:
                raise ldtp.LdtpExecutionError, "The " + self.name + " window was not found."    

        else:
            Application.open(self)

        # Wait the population of the list
        updateManager = ooldtp.context(self.name)

        populating = True

        try:
            while populating:
                populating = False
                self.remap()

                label = updateManager.getchild(role = 'label')
                for i in label:
                    label_name = i.getName()
                    if label_name == self.LBL_WAIT:
                        populating = True
        
        except ldtp.LdtpExecutionError:
            raise ldtp.LdtpExecutionError, "The Update Manager description label was not found."
    
    def close(self):


Generated by  Doxygen 1.6.0   Back to index