Home | Trees | Index | Help |
|
---|
Package CedarBackup2 :: Module config :: Class CollectConfig |
|
object
--+
|
CollectConfig
Class representing a Cedar Backup collect configuration.
As with all of the other classes that represent configuration
sections, all of these values are optional. It is up to some higher-level
construct to decide whether everything they need is filled in. Some
validation is done on non-None
assignments through the use
of the Python property()
construct.
VALID_COLLECT_MODES
.
VALID_ARCHIVE_MODES
.
absoluteExcludePaths
must be an
absolute path
CollectFile
objects.
CollectDir
objects.
For the absoluteExcludePaths
list, validation is
accomplished through the util.AbsolutePathList
list implementation
that overrides common list methods and transparently does the absolute
path validation for us.
collectFiles
and collectDirs
list,
validation is accomplished through the util.ObjectTypeList
list implementation
that overrides common list methods and transparently ensures that each
element has an appropriate type.
Note: Lists within this class are "unordered" for equality comparisons.
Method Summary | |
---|---|
Constructor for the CollectConfig class. | |
Official string representation for class instance. | |
Informal string representation for class instance. | |
Definition of equals operator for this class. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Property Summary | |
---|---|
targetDir : Directory to collect files into. | |
collectMode : Default collect mode. | |
archiveMode : Default archive mode for collect files. | |
ignoreFile : Default ignore file name. | |
absoluteExcludePaths : List of absolute paths to exclude. | |
excludePatterns : List of regular expressions patterns to exclude. | |
collectFiles : List of collect files. | |
collectDirs : List of collect directories. |
Method Details |
---|
__init__(self,
targetDir=None,
collectMode=None,
archiveMode=None,
ignoreFile=None,
absoluteExcludePaths=None,
excludePatterns=None,
collectFiles=None,
collectDirs=None)
Constructor for the |
__repr__(self)
Official string representation for class instance.
|
__str__(self)
Informal string representation for class instance.
|
__cmp__(self,
other)
Definition of equals operator for this class. Lists within this
class are "unordered" for equality comparisons.
|
Property Details |
---|
targetDirDirectory to collect files into. |
collectModeDefault collect mode. |
archiveModeDefault archive mode for collect files. |
ignoreFileDefault ignore file name. |
absoluteExcludePathsList of absolute paths to exclude. |
excludePatternsList of regular expressions patterns to exclude. |
collectFilesList of collect files. |
collectDirsList of collect directories. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 18 22:53:32 2006 | http://epydoc.sf.net |