aboutsummaryrefslogtreecommitdiff
blob: 0cd4b9b8fa144e2e92e36b1f128bd017e2bf9c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env python

import web
import config
from config import render
from index import Index
from arch import Arch
from profile import Profile
from mirror import Mirror
from feature import Feature
from kwd import Keyword
from use import Use
from repo import Repo
from lang import Lang
from package import Package
from host import Host
from search import Search

urls = (
        r'', 'Index',
        r'/', 'Index',
        r'/arch', 'Arch',
        r'/profile', 'Profile',
        r'/mirror', 'Mirror',
        r'/feature', 'Feature',
        r'/keyword', 'Keyword',
        r'/repo', 'Repo',
        r'/lang', 'Lang',
        r'/package/(.+)/(.+)', 'Package',
        r'/package/(.+)', 'Package',
        r'/package', 'Package',
        r'/use/(.+)', 'Use',
        r'/use', 'Use',
        r'/host/(.+)', 'Host',
        r'/host', 'Host',
        r'/search', 'Search'
        )

app = web.application(urls, globals(), autoreload=True)

app.notfound = config.notfound
app.internalerror = config.internalerror

if __name__ == "__main__":
    app.run()