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

Type Factory

object --+
         |
        Factory


Abstract factory for objects created by the public interface.

Eventually, it will possible to alter the type all objects created by
PyBaz, system-wide (by assigning to `pybaz.factory`) or locally (by using a
factory attribute in instances).

Currently, this is only used internally to localise the cyclic dependencies
between various internal modules.

Method Summary
  Archive(self, name)
Create an Archive.
  ArchiveLocation(self, url)
Create an ArchiveLocation.
  isArchive(self, obj)
Does the object implement the Archive interface?...
  isArchiveLocation(self, obj)
Does the object implement the ArchiveLocation interface?...
  isRevision(self, obj)
Does the object implement the Revision interface?...
  isSourceTree(self, obj)
Does the object implement the SourceTree interface?...
  isVersion(self, obj)
Does the object implement the Version interface?...
  Revision(self, name)
Create a Revision.
  Version(self, name)
Create a Version.
    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...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

Method Details

Archive(self, name)

Create an Archive.

:param name: archive name
:type name: str
:rtype: `Archive`

ArchiveLocation(self, url)

Create an ArchiveLocation.

:type url: str

isArchive(self, obj)

Does the object implement the Archive interface?

:rtype: bool

isArchiveLocation(self, obj)

Does the object implement the ArchiveLocation interface?

:rtype: bool

isRevision(self, obj)

Does the object implement the Revision interface?

:rtype: bool

isSourceTree(self, obj)

Does the object implement the SourceTree interface?

:rtype: bool

isVersion(self, obj)

Does the object implement the Version interface?

:rtype: bool

Revision(self, name)

Create a Revision.

:param name: fully qualified name of the revision
:type name: str
:rtype: `Revision`

Version(self, name)

Create a Version.

:param name: fully qualified name of the version.
:type name: str
:rtype: `Version`

Generated by Epydoc 2.1 on Thu Feb 2 14:21:54 2006 http://epydoc.sf.net