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

def zeroinstall::injector::policy::Policy::get_feed_targets (   self,
  feed_iface_uri 
)

Return a list of Interfaces for which feed_iface can be a feed.
This is used by B{0launch --feed}.
@rtype: [model.Interface]
@raise SafeException: If there are no known feeds.

Definition at line 610 of file policy.py.

00610                                                 :
            """Return a list of Interfaces for which feed_iface can be a feed.
            This is used by B{0launch --feed}.
            @rtype: [model.Interface]
            @raise SafeException: If there are no known feeds."""
            feed_iface = self.get_interface(feed_iface_uri)
            if not feed_iface.feed_for:
                  if not feed_iface.name:
                        raise SafeException("Can't get feed targets for '%s'; failed to load interface." %
                                    feed_iface_uri)
                  raise SafeException("Missing <feed-for> element in '%s'; "
                              "this interface can't be used as a feed." % feed_iface_uri)
            feed_targets = feed_iface.feed_for
            if not feed_iface.name:
                  warn("Warning: unknown interface '%s'" % feed_iface_uri)
            return [self.get_interface(uri) for uri in feed_targets]
      
      def get_icon_path(self, iface):


Generated by  Doxygen 1.6.0   Back to index