CedarBackup3.extend.subversion.Repository

Package CedarBackup3 :: Package extend :: Module subversion :: Class Repository |
[hide private]
[frames] | no frames]

# Class Repository

source code

    object --+
             |
            Repository

Known Subclasses:
  - BDBRepository
  - , FSFSRepository

Class representing generic Subversion repository configuration..

The following restrictions exist on data in this class:

- The respository path must be absolute.
- The collect mode must be one of the values in VALID_COLLECT_MODES.
- The compress mode must be one of the values in VALID_COMPRESS_MODES.

The repository type value is kept around just for reference. It doesn't affect the behavior of the backup.

Instance Methods | [hide private]
__init__(self, repositoryType=None, repositoryPath=None, collectMode=None, compressMode=None) Constructor for the `Repository` class. | source code
__repr__(self) Official string representation for class instance. | source code
__str__(self) Informal string representation for class instance. | source code
__cmp__(self, other) Original Python 2 comparison operator. | source code
__eq__(self, other) Equals operator, iplemented in terms of original Python 2 compare operator. | source code
__lt__(self, other) Less-than operator, iplemented in terms of original Python 2 compare operator. | source code
__gt__(self, other) Greater-than operator, iplemented in terms of original Python 2 compare operator. | source code
_setRepositoryType(self, value) Property target used to set the repository type. | source code
_getRepositoryType(self) Property target used to get the repository type. | source code
_setRepositoryPath(self, value) Property target used to set the repository path. | source code
_getRepositoryPath(self) Property target used to get the repository path. | source code
_setCollectMode(self, value) Property target used to set the collect mode. | source code
_getCollectMode(self) Property target used to get the collect mode. | source code
_setCompressMode(self, value) Property target used to set the compress mode. | source code
_getCompressMode(self) Property target used to get the compress mode. | source code
__ge__(x, y) x>=y |
__le__(x, y) x<=y |
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Properties | [hide private]
| repositoryPath Path to the repository to collect.
| collectMode Overridden collect mode for this repository.
| compressMode Overridden compress mode for this repository.
| repositoryType Type of this repository, for reference.
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, repositoryType=None, repositoryPath=None, collectMode=None, compressMode=None) (Constructor) | source code
Constructor for the `Repository` class. Parameters: `repositoryType` - Type of repository, for reference `repositoryPath` - Absolute path to a Subversion repository on disk. `collectMode` - Overridden collect mode for this directory. `compressMode` - Overridden compression mode for this directory. Overrides: object.__init__

### __repr__(self) (Representation operator) | source code
Official string representation for class instance. Overrides: object.__repr__

### __str__(self) (Informal representation operator) | source code
Informal string representation for class instance. Overrides: object.__str__

### __cmp__(self, other) (Comparison operator) | source code
Original Python 2 comparison operator. Parameters: `other` - Other object to compare to. Returns: -1/0/1 depending on whether self is `<`, `=` or `>` other.

### _setRepositoryType(self, value) | source code
Property target used to set the repository type. There is no validation; this value is kept around just for reference.

### _setRepositoryPath(self, value) | source code
Property target used to set the repository path. The value must be an absolute path if it is not `None`. It does not have to exist on disk at the time of assignment. Raises: `ValueError` - If the value is not an absolute path. `ValueError` - If the value cannot be encoded properly.

### _setCollectMode(self, value) | source code
Property target used to set the collect mode. If not `None`, the mode must be one of the values in VALID_COLLECT_MODES. Raises: `ValueError` - If the value is not valid.

### _setCompressMode(self, value) | source code
Property target used to set the compress mode. If not `None`, the mode must be one of the values in VALID_COMPRESS_MODES. Raises: `ValueError` - If the value is not valid.

Property Details | [hide private]

### repositoryPath Path to the repository to collect. Get Method: _getRepositoryPath(self) - Property target used to get the repository path. Set Method: _setRepositoryPath(self, value) - Property target used to set the repository path.

### collectMode Overridden collect mode for this repository. Get Method: _getCollectMode(self) - Property target used to get the collect mode. Set Method: _setCollectMode(self, value) - Property target used to set the collect mode.

### compressMode Overridden compress mode for this repository. Get Method: _getCompressMode(self) - Property target used to get the compress mode. Set Method: _setCompressMode(self, value) - Property target used to set the compress mode.

### repositoryType Type of this repository, for reference. Get Method: _getRepositoryType(self) - Property target used to get the repository type. Set Method: _setRepositoryType(self, value) - Property target used to set the repository type.