未知
upc.remotecontrol的Python项目详细描述
简介
remotecontrol是一个通过xml管理一组plone实例的工具- rpc调用。
建筑安装
要安装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)
- 初始版本