基于ajax的zope/python plone提示

Products.Clouseau的Python项目详细描述


克鲁索

作者:

Andy McKay

学分和感谢:

Lots of great work on this at the initial Vancouver sprint:

Leonardo Rochael Almeida Richard Amerman

Enfold系统,温哥华Sprint的空间和开发者时间 蓝色喷泉,开发商时间 7technw,开发者时间 Tiberiu Ichim,开发人员时间

测试和反馈:

Wichert Akkerman Volodymyr Cherepanyak Johannes Ammonl Laurence Rowe Maik R?der

许可证:

GPL, see License.GPL

这是什么?

It’s a Ajax based Zope/Python prompt. Think of it is a replacement for zopectl debug.

依赖关系

Recent browser tested on Safari, Firefox 1.5

Zope 2.9 +

Plone 2.5

May work in others, but this is what it was tested on.

Warning not tested on:

IE since 0.1 release. I don’t own a Windows computer (and don’t want to). Any help or debugging from users of IE appreciated. Unfortunately, just telling me it does not work on IE is not enough, I need patches.

Optional:

If you have DocFinderTab installed, you will get more detailed tooltips.

Find DocFinderTab here: http://www.zope.org/Members/shh/DocFinderTab

不适用于

Using Clouseau when PDBDebugMode is installed and active results in weird behaviour and lockdowns.

是什么?

A Python prompt that allows you to interact with your Zope site. It does this with an Ajax interface, so you can do this right from the ui.

我怎么用?

Download product and drop the Clouseau directory into your Products directory. Just like any other product. Restart Zope.

In Plone go to site setup > add/remove products. Install Clouseau.

Then go to site setup > Clouseau.

Click “create a new session”.

Play.

—or

Go to a content item.

Click on the little magnifying glass.

Play.

安全吗?

Probably not. All the methods that interact with the application are protected by Zope security. So if you trust that code, you’ll be happy. However chances are if you know Plone and Zope you might be screaming at this point.

It does fly in the face of the traditional security model a bit, although essentially you are allowing anyone who has Manager to do anything to your site. Running this on a production site is crazy. From the page template in Clouseau…

Warning: this tool allows users to interact with your Zope at its most basic level. It will allow a user to add, edit, delete any data in the site ignoring all security. This tool should only be used on development sites. If you are at all unsure, stop, back away and uninstall this product immediately and go and read the documentation in the source.

首先,如何保护我的安装?

There are two variables enabled and enabled_only_in_debug_mode. Both of these are defined in config.py. If you would like to turn Clouseau off, then set enabled = False. If you’d like clouseau to work only when Zope is in debug-mode then leave enabled_only_in_debug_mode = True.

Note: by default Clouseau is set to enabled = True and enabled_only_in_debug_mode = True. If you are running in production mode, restart your server in debug-mode.

下一步,这行吗?

Probably. It’s got quite a way to go yet. See to do.

为什么基于浏览器?

  1. Ease of end users, this has NO dependencies (compare to PloneShell or zopectl)
  2. Collaborative debugging, multiple people can join a session and see the same data
  3. Lots of features we haven’t gotten too yet.
  4. Ease of development, no hacking down in wxPython or Zope sources.

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

推荐PyPI第三方库


热门话题
java getResourceAsStream()返回内容为空的流   java用小数组替换大数组或映射的一部分   java如何获得安卓的运营商功能   在Java中,可以从数组中的值一次分配给多个变量吗?   java Spring透视图没有在eclipse中显示   Java中的通用LinkedList克隆   java确实避开了线程的分析处理。holdsLock()正确吗?   java SocketInputStream。客户端使用jax rs向服务器发送请求时,socketRead0挂起   java从扫描仪读取多个输入   java Siddhi是否无法按多个变量分组?   java字符串将不会绘制   如何在Java中遍历属性文件中的值   对象列表的java JSON字符串   JavaGridLayout不考虑给定的行数和列数   java SSL:解析证书时出错:确定   java检查Hashmap中的键是否在AutoCompleteTextView中键入   java如何从HTML服务器获取JSON对象作为响应   Java对于类型列表<Object>   在AnyLogic中与外部java应用程序一起使用ExperimentRunFast