sites/www.qmsk.net/__init__.py
author Tero Marttila <terom@fixme.fi>
Sat, 07 Feb 2009 17:14:01 +0200
branchsites
changeset 35 79ea0e2a6cc2
parent 34 09196d5b2a39
permissions -rw-r--r--
move pages/ -> sites/www.qmsk.net/pages/
30
a86a25a9f75b route requests through sites/www.qmsk.net, although still hardcoded
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     1
"""
a86a25a9f75b route requests through sites/www.qmsk.net, although still hardcoded
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     2
    The www.qmsk.net site is just a simple site with a filesystem-based URL mapping
a86a25a9f75b route requests through sites/www.qmsk.net, although still hardcoded
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     3
"""
a86a25a9f75b route requests through sites/www.qmsk.net, although still hardcoded
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     4
32
be954df4f0e8 move layout.tmpl to sites/www.qmsk.net
Tero Marttila <terom@fixme.fi>
parents: 31
diff changeset
     5
from lib import template
35
79ea0e2a6cc2 move pages/ -> sites/www.qmsk.net/pages/
Tero Marttila <terom@fixme.fi>
parents: 34
diff changeset
     6
import lookup
30
a86a25a9f75b route requests through sites/www.qmsk.net, although still hardcoded
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     7
31
107062ebb6f9 bloat code with even more layers of indirection, split off the filesystem-based stuff into a separate lib.filesystem package (next, move it to sites/www.qmsk.net)
Tero Marttila <terom@fixme.fi>
parents: 30
diff changeset
     8
# global mapper attribute
35
79ea0e2a6cc2 move pages/ -> sites/www.qmsk.net/pages/
Tero Marttila <terom@fixme.fi>
parents: 34
diff changeset
     9
handler = lookup.PageMapper("sites/www.qmsk.net/pages", template=template.TemplateLoader.load("sites/www.qmsk.net/templates/layout.tmpl"))
30
a86a25a9f75b route requests through sites/www.qmsk.net, although still hardcoded
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    10