Package zeroinstall :: Package injector :: Module model :: Class ZeroInstallFeed
[frames] | no frames]

Class ZeroInstallFeed

source code

object --+
         |
        ZeroInstallFeed

A feed lists available implementations of an interface.

Instance Methods
 
__init__(self, feed_element, local_path=None, distro=None)
Create a feed object from a DOM.
source code
str
get_distro_feed(self)
Does this feed contain any <pacakge-implementation> elements? i.e.
source code
[str]
get_package_impls(self, distro)
Find the best <pacakge-implementation> element(s) for the given distribution.
source code
str
get_name(self) source code
 
__repr__(self)
repr(x)
source code
 
set_stability_policy(self, new) source code
 
get_feed(self, url) source code
 
add_metadata(self, elem) source code
 
get_metadata(self, uri, name)
Return a list of interface metadata elements with this name and namespace URI.
source code
 
summary(self) source code
 
description(self) source code
str | None
get_replaced_by(self)
Return the URI of the interface that replaced the one with the URI of this feed's URL.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables
{str: str} descriptions
long textual description (in various languages, since 0.49)
set(str) feed_for
interfaces for which this could be a feed
[Feed] feeds
list of <feed> elements in this feed
{str: Implementation} implementations
Implementations in this feed, indexed by ID
  last_checked
time feed was last successfully downloaded and updated
  last_modified
timestamp on signature
str | None local_path
the path of this local feed, or None if remote (since 1.7)
  metadata
extra elements we didn't understand
  name
human-friendly name
{str: str} summaries
short textual description (in various languages, since 0.49)
  url
the URL for this feed
Properties

Inherited from object: __class__

Method Details

__init__(self, feed_element, local_path=None, distro=None)
(Constructor)

source code 

Create a feed object from a DOM.

Parameters:
  • feed_element (qdom.Element) - the root element of a feed file
  • local_path (str | None) - the pathname of this local feed, or None for remote feeds
Overrides: object.__init__

get_distro_feed(self)

source code 

Does this feed contain any <pacakge-implementation> elements? i.e. is it worth asking the package manager for more information?

Returns: str
the URL of the virtual feed, or None

Since: 0.49

get_package_impls(self, distro)

source code 

Find the best <pacakge-implementation> element(s) for the given distribution.

Parameters:
Returns: [str]
a list of tuples for the best ranked elements

Since: 0.49

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

get_metadata(self, uri, name)

source code 

Return a list of interface metadata elements with this name and namespace URI.

Parameters:
  • uri (str)
  • name (str)

summary(self)

source code 
Decorators:
  • @property

description(self)

source code 
Decorators:
  • @property

get_replaced_by(self)

source code 

Return the URI of the interface that replaced the one with the URI of this feed's URL. This is the value of the feed's <replaced-by interface'...'/> element.

Returns: str | None
the new URI, or None if it hasn't been replaced

Since: 1.7