class ZMSRepositoryManager(ZMSItem.ZMSItem): (source)
Constructor: ZMSRepositoryManager()
Implements interfaces: Products.zms.IZMSConfigurationProvider.IZMSConfigurationProvider, Products.zms.IZMSRepositoryManager.IZMSRepositoryManager
Undocumented
| Method | __init__ |
Initialize the instance state. |
| Method | commit |
Export: Commit ZODB to repository. |
| Method | get |
Return conf basepath. |
| Method | get |
Return ignore orphans. |
| Method | get |
Retrieve remote files from a repository provider. |
| Method | get |
Read repository data from a provider. |
| Method | get |
Returns direction of copying config files: Loading from file system (coloring ZMS changes) vs. Saving to file system (coloring filesystem changes) |
| Method | manage |
Manage changes in the ZMS repository. |
| Method | manage |
Handle the ZMI action 'manage_options'. |
| Method | manage |
Handle the ZMI action 'manage_sub_options'. |
| Method | update |
Import: Update ZODB from repository. |
| Class Variable | __ac |
Undocumented |
| Class Variable | __administrator |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | manage |
Undocumented |
| Class Variable | meta |
Undocumented |
| Class Variable | zmi |
Undocumented |
| Instance Variable | id |
Undocumented |
| Instance Variable | ignore |
Undocumented |
| Instance Variable | update |
Undocumented |
Retrieve remote files from a repository provider.
This method retrieves a list of remote files from the specified provider by constructing the base path configuration and delegating to the repository utility function.
| Parameters | |
| provider:object | The repository provider object containing configuration and connection details for accessing remote files |
| Returns | |
| list | A list of remote files available from the provider |
| See Also | |
repositoryutil.get_modelfileset_from_disk | |
get_conf_basepath | |
Read repository data from a provider.
Implements the 'get_models_from_disk' interface. This method retrieves repository information from the specified provider by reading the repository structure from the configured base path.
| Parameters | |
| provider:Provider | The provider object from which to read the repository. Must have an 'id' attribute. |
| Returns | |
| dict | Repository data read from the provider's base path. |
| See Also | |
| repositoryutil.get_models_from_disk() | |
Returns direction of copying config files: Loading from file system (coloring ZMS changes) vs. Saving to file system (coloring filesystem changes)
Manage changes in the ZMS repository.
- For 'save': Save current settings (ignore orphans, update direction) and return with confirmation message.
- For 'commit': Commit changes from ZODB to repository and return with success/failure messages.
- For 'override'/'update': Update ZODB from repository (with or without override) and return with success/failure messages.
- Redirect to manage_main with appropriate messages in query parameters.
- Messages are localized using getZMILangStr and include lists of successfully processed and failed items.
- Events 'beforeCommitRepositoryEvt', 'afterCommitRepositoryEvt', 'beforeUpdateRepositoryEvt', and 'afterUpdateRepositoryEvt' are triggered at appropriate stages of processing.
| Parameters | |
| btn:str | Action button clicked ('save', 'commit', 'override', 'update') |
| lang:str | Language code for messages |
| REQUEST:ZPublisher.HTTPRequest | Current request object |
| RESPONSE:ZPublisher.HTTPResponse | Current response object |