def getInstallMethod(self, productname): """ Return the installer method """ res = get_install_method(productname) if res is None: raise AttributeError('No Install method found for ' 'product %s' % productname) return res
def getInstallMethod(self): """ returns the installer method """ res = get_install_method(self.id) if res is None: raise AttributeError('No Install method found for ' 'product %s' % self.id) else: return res