Package pybaz :: Class BranchIterable
[frames | no frames]

Type BranchIterable

     object --+            
              |            
NamespaceObject --+        
                  |        
   RevisionIterable --+    
                      |    
        VersionIterable --+
                          |
                         BranchIterable

Known Subclasses:
Category, CategoryIterable

Base class for archive classes above Branch.

BranchIterable provides features which are common to all objects containing branches.


Method Summary

iterable of Branch

iter_branches(self)
Iterate over archive branches.

iterable of Branch

iter_library_branches(self)
Iterate over library branches.

iterable of Version

iter_library_versions(self, reverse)
Iterate over library revisions.

iterable of Version

iter_versions(self, reverse)
Iterate over archive versions.
    Inherited from VersionIterable

iterable of Revision

iter_library_revisions(self, reverse)
Iterate over library revisions.

iterable of Revision

iter_revisions(self, reverse)
Iterate over archive revisions.
    Inherited from NamespaceObject

bool

__eq__(self, x)
Compare types and fully-qualified names.

bool

__ne__(self, x)
Compare types and fully-qualified names.

str

__repr__(self)
Fully-qualified name in angle brackets.

str

__str__(self)
Fully-qualified name.

bool

exists(self)
Does this namespace exists?

str

get_fullname(self)
Deprecated
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Property Summary
    Inherited from NamespaceObject

str

fullname: Fully qualfied name of this namespace object.

Method Details

iter_branches(self)

Iterate over archive branches.

Returns:

all existing branches in this namespace.


           (type=

iterable of Branch

)

Precondition:

self.exists() returns True.

iter_library_branches(self)

Iterate over library branches.

Returns:

branches in this namespace which are present in the revision library.


           (type=

iterable of Branch

)

iter_library_versions(self, reverse=False)

Iterate over library revisions.

Parameters:
reverse -

reverse order, higher versions first.


           (type=

bool

)
Returns:

versions in this namespace which are present in the revision library.


           (type=

iterable of Version

)
Overrides:
pybaz.VersionIterable.iter_library_versions (inherited documentation)

iter_versions(self, reverse=False)

Iterate over archive versions.

Parameters:
reverse -

reverse order, higher versions first.


           (type=

bool

)
Returns:

all existing versions in this namespace.


           (type=

iterable of Version

)
Overrides:
pybaz.VersionIterable.iter_versions (inherited documentation)

Precondition:

self.exists() returns True.


Generated by Epydoc 2.1 on Fri Jul 7 17:05:33 2006 http://epydoc.sf.net