~mvo/software-center/lp967036-2

« back to all changes in this revision

Viewing changes to softwarecenter/db/application.py

  • Committer: Kiwinote
  • Date: 2012-03-15 22:36:31 UTC
  • mfrom: (2867 trunk)
  • mto: This revision was merged to the branch mainline in revision 2881.
  • Revision ID: kiwinote@gmail.com-20120315223631-lvea6t5sydpkkqni
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
821
821
    def hardware_requirements(self):
822
822
        result = {}
823
823
        try:
824
 
            from debtagshw.debtagshw import DebtagsAvailableHW
825
 
            hw = DebtagsAvailableHW()
826
 
            result =  hw.get_hardware_support_for_tags(
827
 
                self.tags)
 
824
            from softwarecenter.hw import get_hardware_support_for_tags
 
825
            result =  get_hardware_support_for_tags(self.tags)
828
826
        except ImportError:
829
827
            LOG.warn("failed to import debtagshw")
830
828
            return result
831
829
        return result
832
830
 
833
831
    def _unavailable_channel(self):
834
 
        """ Check if the given doc refers to a channel that is currently not enabled """
 
832
        """ Check if the given doc refers to a channel that is currently
 
833
            not enabled
 
834
        """
835
835
        return not is_channel_available(self.channelname)
836
836
 
837
837
    def _unavailable_component(self, component_to_check=None):
838
 
        """ Check if the given doc refers to a component that is currently not enabled """
 
838
        """ Check if the given doc refers to a component that is currently 
 
839
            not enabled
 
840
        """
839
841
        if component_to_check:
840
842
            component = component_to_check
841
843
        elif self.component: