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

Class Factory

source code

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.



Instance Methods
 
Archive(self, name)
Create an Archive.
 
ArchiveLocation(self, url)
Create an ArchiveLocation.
 
Revision(self, name)
Create a Revision.
 
Version(self, name)
Create a Version.
 
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?...

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

Properties

Inherited from object: __class__

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

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`

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