• I'll show you how to write applications that use CherryPy.

    说明如何使用CherryPy编写应用程序。

    youdao

  • I used the Python/CherryPy server code in Listing 4 (wotd_server.py).

    使用清单4(wotd_server.py)所示Python/CherryPy服务器代码

    youdao

  • Run this script through Python, and the CherryPy Web server will start up.

    通过Python运行段脚本CherryPyWeb服务器将会启动

    youdao

  • Cherrypy (import cherrypy) : Minimum version cherrypy 2.1, currently in beta.

    cherrypy (import cherrypy):最低版本cherrypy 2.1,目前be ta版。

    youdao

  • One very popular option, and my personal favorite, is CherryPy (see Resources).

    一种非常流行的选择也是个人最喜欢的,CherryPy(请参阅参考资料)。

    youdao

  • This article introduces CherryPy, a simple but very usable Web framework for Python.

    本文将介绍CherryPy一种用于Python的、简单而又非常有用Web框架

    youdao

  • Otherwise, CherryPy will never be able to associate two requests with the same session.

    否则CherryPy永不可能两个请求相同的会话关联起来。

    youdao

  • Listing 4 is a specialization of the CherryPy Web server presented as Listing 1 of the last article.

    清单4文章中清单1所示CherryPyWeb服务器特化

    youdao

  • The CherryPy Web server automatically transforms a URL's query string into a set of keyword arguments.

    CherryPyWeb服务器自动URL查询字符串转变为关键字参数

    youdao

  • The special method default is marked as a CherryPy handler function by the @cherrypy.expose decorator.

    default这个特殊方法使用 @cherrypy.expose 修饰符标记CherryPy处理程序函数。

    youdao

  • Instead of relying on Apache or another Web server, CherryPy runs its own small Python-based Web server.

    CherryPy不是依靠Apache或者另外Web服务器,而是运行自己的小型的基于Python的Web服务器。

    youdao

  • The format of the CherryPy Web server config file and the options you can put into it are described on this Wiki.

    CherryPyWeb服务器配置文件格式及其可放入其中的选项Wiki都有描述

    youdao

  • The CherryPy Web site has a basic tutorial, a number of more advanced recipes, and a list of third-party add-ons.

    CherryPyWeb站点一个基本教程许多比较高级秘诀

    youdao

  • If cpg.root.hello is a method, CherryPy calls that method, and the output of the method is sent to the Web browser.

    如果cpg . root . hello一个方法CherryPy调用方法,方法输出发送Web浏览器。

    youdao

  • Listing 1 (wnserver.py) is a program that USES CherryPy to serve up information about words based on a very simple URL scheme.

    清单1 (wnserver . py)使用CherryPy根据非常简单URL方案提供单词信息程序

    youdao

  • When a user hits the /hello/ URL, CherryPy turns any what and the who in the query string into arguments to the hello() method.

    用户点击 /hello/URL 时,CherryPy查询字符串中的whatwho转换为 hello()方法参数

    youdao

  • Cherrypy is designed so that this filter on the root handler instance also applies to other handler objects on the chain from cherrypy.root.

    根据cherrypy设计这个处理程序实例筛选可用于源自cherrypy .root的中的其他处理程序对象

    youdao

  • I think the decorator is the best way to expose a method to CherryPy, but you can also expose a method by setting its exposed member to true.

    认为装饰符方法暴露CherryPy最佳方式但是可以通过成员exposed设置True来暴露一个方法。

    youdao

  • Unlike frameworks like mod_python that make you mount applications onto URLs served by Apache, CherryPy connects to Apache through rewrite rules.

    不像框架(比如mod_python),使应用程序安装Apache提供URL上,CherryPy通过重写规则连接Apache上。

    youdao

  • Decorators don't exist in versions of Python prior to version 2.4, so the exposed trick may be the only way for you to expose methods to CherryPy.

    装饰符存在版本2.4之前Python中,因而exposed这个技巧可能方法暴露给CherryPy惟一方式

    youdao

  • Picket (from picket import picket, PicketFilter) : This is a straightforward tool that simplifies the API for invoking XSLT from a CherryPy server.

    picket (from picketimport picket,PicketFilter):一种非常简单工具简化了CherryPy服务器中调用XSLTAPI

    youdao

  • Instead of serving a Web space rooted in a directory on disk, the CherryPy Web server serves a Web space rooted at a particular Python object, cpg.root.

    CherryPyWeb服务器提供根植磁盘目录中的Web空间,而提供根植于特定Python对象cpg . root中的Web空间。

    youdao

  • A traditional Web server creates a Web space out of a tree of directories disk, but the CherryPy server creates its Web space out of a tree of Python objects.

    传统Web服务器目录磁盘之外创建一个Web空间CherryPy服务器则在Python对象树之外创建Web空间。

    youdao

  • CherryPy USES these informal conventions to eliminate several steps of this process, providing user input as the arguments to the Python method it decides to call.

    CherryPy使用这些非正式的约定消除这个过程几个步骤,以参数形式将用户输入提供决定调用Python方法

    youdao

  • When you expose an object tree as a CherryPy URL space, the assumption goes the other way: Unless you explicitly label a method as exposed, it isn't served to outside users.

    对象暴露CherryPyURL空间时,假设一种情形除非您显性地将方法标记为暴露,否则不会外面的用户提供服务。

    youdao

  • A well-designed CherryPy class will probably have only a few public methods exposed to Web clients, but it may have many internal methods a client shouldn't be allowed to access directly.

    一个设计良好CherryPy可能只有少数几个公有方法暴露Web客户机但是它很可能许多允许客户机直接访问内部方法。

    youdao

  • The root class sets up a filter, which is a CherryPy construct that performs some action on data that comes in from the HTTP request, and again on data that goes out as the HTTP response.

    设置筛选器一种CherryPy 结构,对于HTTP 接收的数据以及 HTTP响应发出的数据执行某些动作

    youdao

  • A CherryPy application method typically returns the body of the response as a string, but sometimes you need to set additional HTTP headers, do a redirect, or change the HTTP response code.

    CherryPy应用程序方法通常情况下会字符串形式返回响应正文但是有时需要设置附加的HTTP标题进行一个重定向或者改变HTTP响应代码。

    youdao

  • A CherryPy application method typically returns the body of the response as a string, but sometimes you need to set additional HTTP headers, do a redirect, or change the HTTP response code.

    CherryPy应用程序方法通常情况下会字符串形式返回响应正文但是有时需要设置附加的HTTP标题进行一个重定向或者改变HTTP响应代码。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定