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

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

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

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

@return: The decription of the packages, as shown in the application

Definition at line 440 of file ubuntu.py.

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

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

        @return: The decription of the packages, as shown in the application
        """
        try:
            updateManager = 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 description text field 
            text_field = updateManager.getchild(self.TXT_DESCRIPTION, role='text')
             # Get the text 
            text = ldtp.gettextvalue(self.name, text_field[0].getName())
            return text
        except ldtp.LdtpExecutionError:
            raise ldtp.LdtpExecutionError, "The description text was not found."
        
        return '' 

    def get_changes(self, name=''):


Generated by  Doxygen 1.6.0   Back to index