VisLab

Donald Johnson's Weblog

Web-based Visualization

Title: Turbo Gears Index function
Category: Research
Posted by:
Previous: Turbo Gears URL Matching
Next: Turbo Gears Function/Object Chain

The first level of handling is the index function of the root class. This function in its simplest form, controls what will be returned when just the domain name of the server is requested. When the index function takes only one parameter it will answer only for the domain name, however it may take parameters. If all parameters have default values the index function will still answer for the domain name otherwise the parameters will need to be given values in the url. values may be given by position or by name using the scheme ?paramname=value. The index function can defined to take an unknown number of parameters if defined with def index(self,*args). In this case the function would have to examine the arguments given and generate a page accordingly. 

Login Information
Username:
Password:

© Donald Johnson. The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by Mississippi State University.