Package cherrypy :: Package tutorial :: Module tut05_derived_objects
[hide private]
[frames] | no frames]

Module tut05_derived_objects

source code

Tutorial - Object inheritance

You are free to derive your request handler classes from any base class you wish. In most real-world applications, you will probably want to create a central base class used for all your pages, which takes care of things like printing a common page header and footer.

Classes [hide private]
  Page
  HomePage
  AnotherPage
Variables [hide private]
  tutconf = '/var/build/temp/tmp.iPfnr5LTs4/4.0-0-0/cherrypy3/ch...
  __package__ = 'cherrypy.tutorial'
Variables Details [hide private]

tutconf

Value:
'/var/build/temp/tmp.iPfnr5LTs4/4.0-0-0/cherrypy3/cherrypy3-3.2.2/cher\
rypy/tutorial/tutorial.conf'