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

def zeroinstall::injector::policy::Policy::store_icon (   self,
  interface,
  stream 
)

Called when an icon has been successfully downloaded.
Subclasses may wish to wrap this to repaint the display.

Definition at line 520 of file policy.py.

00520                                              :
            """Called when an icon has been successfully downloaded.
            Subclasses may wish to wrap this to repaint the display."""
            from zeroinstall.injector import basedir
            import shutil
            icons_cache = basedir.save_cache_path(config_site, 'interface_icons')
            icon_file = file(os.path.join(icons_cache, escape(interface.uri)), 'w')
            shutil.copyfileobj(stream, icon_file)
      
      def get_implementation_path(self, impl):


Generated by  Doxygen 1.6.0   Back to index