| """The `Unknown' web application. |
| |
| The Unknown web application is automatically triggered when the page |
| requested is not defined as valid in `webenv.cgi' script. The |
| Unknown web application is basically an admonition message describing |
| the `page not found' issue and where to find the correct links to |
| start all over. |
| |
| """ |
| from Apps import page |
| |
| app = page.Layout() |
| |
| |
| def page_content(): |
| """Returns page content.""" |
| output = app.tag_p('', [16,1], 'The page you tried to open was not found in this server. Try one of the links above to start over.') |
| output = app.admonition('Warning', 'Page not found.', output) |
| output = app.tag_div({'id':'content-unknown'}, [8,1], output, 1) |
| return output |
| |
| |
| def main(): |
| """Returns final output.""" |
| |
| |
| |
| |
| app.name = 'Unknown' |
| |
| |
| |
| |
| app.title += ' :: Page not found' |
| |
| |
| |
| app.header = app.logo() |
| app.header += app.google_ad_example() |
| app.header += app.navibar() |
| |
| |
| |
| app.body = page_content() |
| |
| |
| |
| |
| app.footer = app.credits() |
| |
| |
| html = app.page() |
| |
| return html |