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

def mago::application::ubuntu::UpdateManager::select_update (   self,
  name 
)

It selects a particular package in the list (not for update, just the list).

@type name: string
@param name: The name of the package to select

Definition at line 283 of file ubuntu.py.

00283                                  :
        """
        It selects a particular package in the list (not for update, just the list).

        @type name: string
        @param name: The name of the package to select
        """

        updateManager = ooldtp.context(self.name)

        try:
            table  = updateManager.getchild(self.TBL_UPDATES, role = 'table')
            updates_table = table[0]

            for i in range(0, updates_table.getrowcount(), 1):
                text = updates_table.getcellvalue(i, 1)
                candidate = text.split('\n')[0]
                if candidate == name:
                    updates_table.selectrowindex(i)
                    break
                ldtp.wait(1)
        except ldtp.LdtpExecutionError:
            raise ldtp.LdtpExecutionError, "Error getting the updates table."

    def tick_update(self, name):


Generated by  Doxygen 1.6.0   Back to index