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

Class NamespaceObject

source code

object --+
         |
        NamespaceObject
Known Subclasses:
RevisionIterable, ArchiveItem

Base class for all archive objects.



Instance Methods
 
__eq__(self, x)
Compare types and fully-qualified names.
 
__ne__(self, x)
Compare types and fully-qualified names.
 
__repr__(self)
Fully-qualified name in angle brackets.
 
__str__(self)
Fully-qualified name.
 
exists(self)
Does this namespace exists? Within the Arch model, history cannot be changed: created archive entries cannot be deleted.
 
get_fullname(self)
Deprecated Fully qualified name of this namespace object.

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __setattr__

Properties
  fullname
Fully qualfied name of this namespace object.

Inherited from object: __class__

Method Details

__eq__(self, x)
(Equality operator)

 
Compare types and fully-qualified names.

:return: wether objects have the same types and names.
:rtype: bool

__ne__(self, x)

 
Compare types and fully-qualified names.

:return: whether objects have different types or names.
:rtype: bool

__repr__(self)
(Representation operator)

 
Fully-qualified name in angle brackets.

:rtype: str

Overrides: object.__repr__

__str__(self)
(Informal representation operator)

 
Fully-qualified name.

Returns the value of the fullname attribute.

:rtype: str

Overrides: object.__str__

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_fullname(self)

 
Deprecated

Fully qualified name of this namespace object.

:rtype: str
:see: `NamespaceObject.fullname`


Property Details

fullname


Fully qualfied name of this namespace object.

:type: str

Get Method:
pybaz.NamespaceObject.get_fullname(self) - Deprecated Fully qualified name of this namespace object.