aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/web/plugin.py
blob: e4c099bb5a91abaf0a06ab05008fe90d4e4e792d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from twisted.internet import reactor
from twisted.web2 import server, http, static

# this is currently not working
def startWebserver():
	print "Web startup"
	toplevel = static.File("/hdd")
	site = server.Site(toplevel)
	
	reactor.listenTCP(80, http.HTTPFactory(site))

def Plugins():
    return [ ]