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

Type NamespaceObject

object --+
         |
        NamespaceObject

Known Subclasses:
ArchiveItem, RevisionIterable

Base class for all archive objects.


Method Summary

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

str

fullname: Fully qualfied name of this namespace object.

Method Details

__eq__(self, x)
(Equality operator)

Compare types and fully-qualified names.

Returns:

wether objects have the same types and names.


           (type=

bool

)

__ne__(self, x)

Compare types and fully-qualified names.

Returns:

whether objects have different types or names.


           (type=

bool

)

__repr__(self)
(Representation operator)

Fully-qualified name in angle brackets.

Returns:

str

Overrides:
__builtin__.object.__repr__

__str__(self)
(Informal representation operator)

Fully-qualified name.

Returns the value of the fullname attribute.

Returns:

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.

Returns:

whether this namespace object exists.


           (type=

bool

)
Raises:
errors.ArchiveNotRegistered -

the archive name is not registered, so existence cannot be decided.

errors.ExecProblem -

there was a problem accessing the archive.

get_fullname(self)

Deprecated

Fully qualified name of this namespace object.

Returns:

str

See Also:

NamespaceObject.fullname


Property Details

fullname

Fully qualfied name of this namespace object.

Get Method:
get_fullname(self)

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