cherrypy.tutorial.tut05_派生_对象模块

教程-对象继承

您可以自由地从您希望的任何基类派生您的请求处理程序类。在大多数实际应用程序中,您可能希望创建一个用于所有页面的中心基类,它负责打印公共页面的页眉和页脚。

class cherrypy.tutorial.tut05_derived_objects.AnotherPage[源代码]

基类:cherrypy.tutorial.tut05_derived_objects.Page

index()[源代码]
title = 'Another Page'
class cherrypy.tutorial.tut05_derived_objects.HomePage[源代码]

基类:cherrypy.tutorial.tut05_derived_objects.Page

index()[源代码]
title = 'Tutorial 5'
class cherrypy.tutorial.tut05_derived_objects.Page[源代码]

基类:object

footer()[源代码]
header()[源代码]
title = 'Untitled Page'