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

Type NamespaceObject

object --+
         |
        NamespaceObject

Known Subclasses:
ArchiveItem, RevisionIterable

Base class for all archive objects.

Method Summary
  __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
  __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
  fullname: Fully qualfied name of this namespace object.

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:
__builtin__.object.__repr__

__str__(self)
(Informal representation operator)

Fully-qualified name.

Returns the value of the fullname attribute.

:rtype: str
Overrides:
__builtin__.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:
get_fullname(self)

Generated by Epydoc 2.1 on Tue Jul 11 07:23:51 2006 http://epydoc.sf.net