| 1 |
#!/usr/bin/python
|
| 2 |
#
|
| 3 |
# Copyright 2005 Gentoo Foundation
|
| 4 |
# Distributed under the terms of the GNU General Public License v2
|
| 5 |
#
|
| 6 |
|
| 7 |
"""Sets up the page dispatcher and framework for glsr."""
|
| 8 |
|
| 9 |
__revision__ = "$Id$"
|
| 10 |
__author__ = "Scott Hadfield <hadfield@gentoo.org>"
|
| 11 |
__modulename__ = "main_index"
|
| 12 |
|
| 13 |
import sys
|
| 14 |
sys.path.insert(0, '../')
|
| 15 |
|
| 16 |
from glsr.framework.dispatcher import Dispatcher
|
| 17 |
from glsr.setup import config
|
| 18 |
|
| 19 |
server = Dispatcher("htdocs")
|
| 20 |
server.set_failover("index")
|
| 21 |
sent_page = server.dispatch()
|