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

Archive(self, name)
Create an Archive.
  ArchiveLocation(self, url)
Create an ArchiveLocation.

bool

isArchive(self, obj)
Does the object implement the Archive interface?

bool

isArchiveLocation(self, obj)
Does the object implement the ArchiveLocation interface?

bool

isRevision(self, obj)
Does the object implement the Revision interface?

bool

isSourceTree(self, obj)
Does the object implement the SourceTree interface?

bool

isVersion(self, obj)
Does the object implement the Version interface?

Revision

Revision(self, name)
Create a Revision.

Version

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.

Parameters:
name -

archive name


           (type=

str

)
Returns:

Archive

ArchiveLocation(self, url)

Create an ArchiveLocation.

Parameters:
url
           (type=

str

)

isArchive(self, obj)

Does the object implement the Archive interface?

Returns:

bool

isArchiveLocation(self, obj)

Does the object implement the ArchiveLocation interface?

Returns:

bool

isRevision(self, obj)

Does the object implement the Revision interface?

Returns:

bool

isSourceTree(self, obj)

Does the object implement the SourceTree interface?

Returns:

bool

isVersion(self, obj)

Does the object implement the Version interface?

Returns:

bool

Revision(self, name)

Create a Revision.

Parameters:
name -

fully qualified name of the revision


           (type=

str

)
Returns:

Revision

Version(self, name)

Create a Version.

Parameters:
name -

fully qualified name of the version.


           (type=

str

)
Returns:

Version


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