未知

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)

  • 初始版本

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在jetty请求日志中添加milliscond字段?   java在使用Scanner类从文件读取信息时遇到问题   为什么。类不适用于泛型类型?   SQLite插入上的java空指针异常   java能告诉我们Guava缓存是在禁用统计数据的情况下构建的吗?   java在应用程序中使用常量   java无法使用AutoIT和Selenium Webdriver在所需位置/文件夹保存图像   java如何在jtable中更新jprogress栏   java是比较给定日期和当前日期(在给定时区中没有时间段)的最佳方法   安卓代码中的java错误   java无法访问实体类中的字段   java如何在tomcat中处理三个JDBC连接池?   java无法使用Spring Security保护AngularJS页面   如何在没有TCP/IP协议栈的情况下用Java发送以太帧