Initialize Tizen 2.3
[framework/web/webkit-efl.git] / Tools / QueueStatusServer / main.py
1 # Copyright (C) 2009 Google Inc. All rights reserved.
2 #
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are
5 # met:
6
7 #     * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer.
9 #     * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer
11 # in the documentation and/or other materials provided with the
12 # distribution.
13 #     * Neither the name of Google Inc. nor the names of its
14 # contributors may be used to endorse or promote products derived from
15 # this software without specific prior written permission.
16
17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29 # Request a modern Django
30 from google.appengine.dist import use_library
31 use_library('django', '1.2')  # Must agree with __init.py__
32
33 from google.appengine.ext import webapp
34 from google.appengine.ext.webapp.util import run_wsgi_app
35
36 from handlers.activebots import ActiveBots
37 from handlers.dashboard import Dashboard
38 from handlers.gc import GC
39 from handlers.nextpatch import NextPatch
40 from handlers.patch import Patch
41 from handlers.patchstatus import PatchStatus
42 from handlers.queuecharts import QueueCharts
43 from handlers.queuestatus import QueueStatus
44 from handlers.recentstatus import QueuesOverview
45 from handlers.releasepatch import ReleasePatch
46 from handlers.showresults import ShowResults
47 from handlers.statusbubble import StatusBubble
48 from handlers.submittoews import SubmitToEWS
49 from handlers.svnrevision import SVNRevision
50 from handlers.syncqueuelogs import SyncQueueLogs
51 from handlers.updatestatus import UpdateStatus
52 from handlers.updatesvnrevision import UpdateSVNRevision
53 from handlers.updateworkitems import UpdateWorkItems
54
55
56 webapp.template.register_template_library('filters.webkit_extras')
57
58 routes = [
59     ('/', QueuesOverview),
60     ('/dashboard', Dashboard),
61     ('/gc', GC),
62     ('/sync-queue-logs', SyncQueueLogs),
63     (r'/patch-status/(.*)/(.*)', PatchStatus),
64     (r'/patch/(.*)', Patch),
65     (r'/submit-to-ews', SubmitToEWS),
66     (r'/results/(.*)', ShowResults),
67     (r'/status-bubble/(.*)', StatusBubble),
68     (r'/svn-revision/(.*)', SVNRevision),
69     (r'/queue-charts/(.*)', QueueCharts),
70     (r'/queue-status/(.*)/bots/(.*)', QueueStatus),
71     (r'/queue-status/(.*)', QueueStatus),
72     (r'/next-patch/(.*)', NextPatch),
73     (r'/release-patch', ReleasePatch),
74     ('/update-status', UpdateStatus),
75     ('/update-work-items', UpdateWorkItems),
76     ('/update-svn-revision', UpdateSVNRevision),
77     ('/active-bots', ActiveBots),
78 ]
79
80 application = webapp.WSGIApplication(routes, debug=True)
81
82 def main():
83     run_wsgi_app(application)
84
85 if __name__ == "__main__":
86     main()