创建公有类和内容适配器变量。
示例的服务位于一个名为GetUserInfo的类,它包括以下公有方法。
The sample service resides in a class named GetUserInfo that includes the following public methods.
一个设计良好的CherryPy类可能只有少数几个公有的方法暴露给Web客户机,但是它很可能有许多不允许客户机直接访问的内部方法。
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.
应用推荐