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

def mago::application::ubuntu::UpdateManager::get_changes (   self,
  name = '' 
)

It returns the changes description for a given update.
If no update is mentioned, then the changes description for the
selected application is returned.

@type name: string
@param name: The package to show changes. If left blank, the current
selection will be chosen.

@return: The decription of the changes

Definition at line 471 of file ubuntu.py.

00471                                   :
        """
        It returns the changes description for a given update.
        If no update is mentioned, then the changes description for the
        selected application is returned.

        @type name: string
        @param name: The package to show changes. If left blank, the current
        selection will be chosen.

        @return: The decription of the changes
        """
        try:
            ooldtp.context(self.name)
        except ldtp.LdtpExecutionError:
            raise ldtp.LdtpExecutionError, "The Update Manager window was not found."
        
        try:
            if name != '':
                self.select_update(name)

            # Get the filler tab
            filler = ldtp.getobjectproperty(self.name , self.TAB_CHANGES, 'children')
            # Get the scroll pane
            scroll_pane = ldtp.getobjectproperty(self.name , filler, 'children')
            # Get the text field
            text_field = ldtp.getobjectproperty(self.name , scroll_pane, 'children')
            text_field = text_field.split(' ')[0]
            # Get the text
            text = ldtp.gettextvalue(self.name, text_field)
            return text
        except ldtp.LdtpExecutionError:
            raise ldtp.LdtpExecutionError, "The Changes tab was not found."
        
        return '' 

    def toggle_changes(self, show):


Generated by  Doxygen 1.6.0   Back to index