跳转到主要内容

未知

项目描述

介绍

upc.remotecontrol是一个通过XML-RPC调用管理一组Plone实例的工具。

Buildout安装

要安装upc.remotecontrol,将以下代码添加到您的buildout.cfg中

[instance]
...
eggs =
    ...
    upc.remotecontrol

使用方法

连接到Zope实例

>>> from xmlrpclib import ServerProxy
>>> client = ServerProxy('http://admin:admin@localhost:8080/')

列出所有Plone实例

>>> client.listInstances()
['instance1', 'instance2', 'instance3']

为所有实例安装产品

>>> client.installProduct("collective.fancyzoomview")
'Successfully installed collective.fancyzoomview on all instances.'

为所有实例卸载产品

>>> client.uninstallProduct("collective.fancyzoomview")
'Successfully uninstalled collective.fancyzoomview on all instances.'

为所有实例重新安装产品

>>> print client.reinstallProduct("collective.fancyzoomview")
'Successfully reinstalled collective.fancyzoomview on all instances.'

为所有实例应用特定的通用设置导入步骤

>>> client.applyImportStep("collective.fancyzoomview", "catalog")
'Successfully applied import step catalog to profile collective.fancyzoomview.'

变更日志

1.0a1 (2009-12-04)

  • 首次发布

由以下机构支持