new plugin interface
[enigma2.git] / lib / python / Plugins / web / plugin.py
1 from twisted.internet import reactor
2 from twisted.web2 import server, http, static
3
4 # this is currently not working
5 def startWebserver():
6         print "Web startup"
7         toplevel = static.File("/hdd")
8         site = server.Site(toplevel)
9         
10         reactor.listenTCP(80, http.HTTPFactory(site))
11
12 def Plugins():
13     return [ ]