Logo Search packages:      
Sourcecode: zeroinstall-injector version File versions

def zeroinstall::injector::policy::Policy::get_icon_path (   self,
  iface 
)

Get an icon for this interface. If the icon is in the cache, use that.
If not, start a download. If we already started a download (successful or
not) do nothing.
@return: The cached icon's path, or None if no icon is currently available.
@rtype: str

Definition at line 627 of file policy.py.

00627                                     :
            """Get an icon for this interface. If the icon is in the cache, use that.
            If not, start a download. If we already started a download (successful or
            not) do nothing.
            @return: The cached icon's path, or None if no icon is currently available.
            @rtype: str"""
            path = iface_cache.get_icon_path(iface)
            if path:
                  return path

            if self.network_use == network_offline:
                  info("No icon present for %s, but off-line so not downloading", iface)
                  return None

            self.begin_icon_download(iface)
            return None
      
      def get_best_source(self, impl):


Generated by  Doxygen 1.6.0   Back to index