Home | Trees | Index | Help |
---|
Package pybaz :: Class Branch |
|
object
--+ |NamespaceObject
--+ |ArchiveItem
--+ |CategoryItem
--+ |object
--+ | | |NamespaceObject
--+ | | |RevisionIterable
--+ | | |object
--+ | | | | |NamespaceObject
--+ | | | | |ArchiveItem
--+ | | | | |Setupable
--+ | | |Package
--+ |object
--+ | | |NamespaceObject
--+ | | |RevisionIterable
--+ | | |VersionIterable
--+ | Branch
Arch branch namespace object. :see: `Archive`, `Category`, `Version`, `Revision`
Method Summary | |
---|---|
Create a Branch object from its name. | |
Instanciate a version belonging to this branch. | |
Deprecated. | |
Does this namespace exists? Within the Arch model, history cannot be changed: created archive entries cannot be deleted. | |
Deprecated. | |
Deprecated. | |
Iterate over library revisions. | |
Iterate over archive versions. | |
Latest version in this branch. | |
Inherited from CategoryItem | |
Deprecated. | |
Inherited from Package | |
Deprecated. | |
Latest revision in this package. | |
Inherited from Setupable | |
Deprecated. | |
Inherited from ArchiveItem | |
Deprecated. | |
Deprecated Fully qualified name of this namespace object. | |
Deprecated. | |
Inherited from VersionIterable | |
Iterate over library revisions. | |
Iterate over archive revisions. | |
Inherited from NamespaceObject | |
Compare types and fully-qualified names. | |
Compare types and fully-qualified names. | |
Fully-qualified name in angle brackets. | |
Fully-qualified name. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
helper for pickle... | |
helper for pickle... | |
x.__setattr__('name', value) <==> x.name = value... |
Property Summary | |
---|---|
library_versions : Deprecated. | |
versions : Deprecated. | |
Inherited from CategoryItem | |
category : Category which contains this object. | |
Inherited from ArchiveItem | |
archive : Archive which contains this namespace object. | |
fullname : Fully qualfied name of this namespace object. | |
nonarch : Non-arch part of this namespace name. |
Method Details |
---|
__init__(self,
name)
|
__getitem__(self,
v)
|
as_version(self)Deprecated. Latest version in this branch. :rtype: `Version` :precondition: `self.exists()` returns ``True`` :precondition: `self.iter_versions` yields at least one object. :raise IndexError: this branch is empty. :see: `latest_version` |
exists(self)Does this namespace exists? Within the Arch model, history cannot be changed: created archive entries cannot be deleted. However, it is possible to ``unregister`` an archive, or to find references to archives whose location is not known. Thus, existence cannot always be decided. Testing for the existence of a name in a non-registered archive raises `errors.ArchiveNotRegistered`. :return: whether this namespace object exists. :rtype: bool :raise errors.ArchiveNotRegistered: the archive name is not registered, so existence cannot be decided. :raise errors.ExecProblem: there was a problem accessing the archive.
|
get_library_versions(self, reverse=False)Deprecated. Versions in this branch present in the library. :rtype: tuple of `Version` :see: `iter_library_versions` |
get_versions(self, reverse=False)Deprecated. Versions in this branch. :rtype: tuple of `Version` :see: `iter_versions` |
iter_library_versions(self, reverse=False)Iterate over library revisions. :param reverse: reverse order, higher versions first. :type reverse: bool :return: versions in this namespace which are present in the revision library. :rtype: iterable of `Version`
|
iter_versions(self, reverse=False)Iterate over archive versions. :param reverse: reverse order, higher versions first. :type reverse: bool :return: all existing versions in this namespace. :rtype: iterable of `Version` :precondition: `self.exists()` returns ``True``.
|
latest_version(self)Latest version in this branch. :rtype: `Version` :precondition: `self.exists()` returns ``True`` :precondition: `self.iter_versions` yields at least one object. :raise ValueError: the archive is not registered, or this branch does not exist, or it contains no version. |
Property Details |
---|
library_versionsDeprecated. Versions in this branch present in the library. :type: tuple of `Version` :see: `iter_library_versions` |
versionsDeprecated. Versions in this branch. :type: tuple of `Version` :see: `iter_versions` |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Jul 18 16:30:57 2006 | http://epydoc.sf.net |