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

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

Get all implementations from all feeds, in order.
@type iface: Interface
@return: a sorted list of implementations.
@rtype: [model.Implementation]

Definition at line 347 of file policy.py.

00347                                                  :
            """Get all implementations from all feeds, in order.
            @type iface: Interface
            @return: a sorted list of implementations.
            @rtype: [model.Implementation]"""
            impls = iface.implementations.values()
            for f in self.usable_feeds(iface):
                  feed_iface = self.get_interface(f.uri)
                  if feed_iface.implementations:
                        impls.extend(feed_iface.implementations.values())
            impls.sort(lambda a, b: self.compare(iface, a, b))
            return impls
      
      def is_unusable(self, impl, restrictions = []):


Generated by  Doxygen 1.6.0   Back to index