# HG changeset patch # User Tero Marttila # Date 1288664183 -7200 # Node ID 50f1b76b083517967536ef14ca726e03367d6ebb # Parent 809686edcd4cacba45d0ceb0473537a9bc6f39a1 Add sample rrdweb.cgi file diff -r 809686edcd4c -r 50f1b76b0835 bin/rrdweb.cgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/rrdweb.cgi Tue Nov 02 04:16:23 2010 +0200 @@ -0,0 +1,23 @@ +#!/usr/bin/env python2.5 + +""" + Simple test server/environment for WSGI development +""" + +from rrdweb import wsgi + +from wsgiref.handlers import CGIHandler +import logging + +if __name__ == '__main__' : + logging.basicConfig(format="%(filename)s:%(lineno)d : %(message)s", level=logging.WARN) + + app = wsgi.WSGIApp( + rrdpath = 'rrd/', + tplpath = 'etc/templates', + imgpath = 'img/', + ) + + # run + CGIHandler().run(app) +