Home | Trees | Indices | Help |
|
---|
|
object --+ | LocalConfig
Class representing this extension's configuration document.
This is not a general-purpose configuration object like the main Cedar Backup configuration object. Instead, it just knows how to parse and emit MySQL-specific configuration values. Third parties who need to read and write configuration related to this extension should access it through the constructor,validate
and addConfig
methods.Note: Lists within this class are "unordered" for equality comparisons.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|
|||
mysql Mysql configuration in terms of a MysqlConfig
object.
|
|||
Inherited from |
|
Initializes a configuration object. If you initialize the object without passing either
No reference to the original XML data or original path is saved off by this class. Once the data has been parsed (successfully or not) this original information is discarded. Unless thevalidate argument is False , the
LocalConfig.validate method will be called (with its
default arguments) against configuration after successfully parsing any
passed-in XML. Keep in mind that even if validate is
False , it might not be possible to parse the passed-in XML
document if lower-level validations fail.
Note:
It is strongly suggested that the |
|
|
|
Validates configuration represented by the object. The compress mode must be filled in. Then, if the 'all' flag is set, no databases are allowed, and if the 'all' flag is not set, at least one database is required.
|
Adds a <mysql> configuration section as the next child of a parent. Third parties should use this function to write configuration related to this extension. We add the following fields to the document:user //cb_config/mysql/user password //cb_config/mysql/password compressMode //cb_config/mysql/compress_mode all //cb_config/mysql/allWe also add groups of the following items, one list element per item: database //cb_config/mysql/database
|
None , the value must be a MysqlConfig
object.
|
Internal method to parse an XML string into the object. This method parses the XML document into a DOM tree (xmlDom ) and then calls a static method to parse the mysql
configuration section.
|
Parses a mysql configuration section. We read the following fields:user //cb_config/mysql/user password //cb_config/mysql/password compressMode //cb_config/mysql/compress_mode all //cb_config/mysql/allWe also read groups of the following item, one list element per item: databases //cb_config/mysql/database
|
|
mysqlMysql configuration in terms of aMysqlConfig object.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Sep 19 22:08:46 2007 | http://epydoc.sourceforge.net |