bdcbd0586f107fb5958adba434ec400ea99285c4
[enigma2.git] / lib / python / Plugins / web / plugin.py
1 from enigma import *
2
3 from twisted.internet import reactor
4 from twisted.web2 import server, http, static
5
6 def autostart():
7         print "Web startup"
8         # For example, serve the /tmp directory
9         toplevel = static.File("/tmp")
10         site = server.Site(toplevel)
11         
12         reactor.listenTCP(8080, http.HTTPFactory(site))
13
14 def autoend():
15         pass
16
17 def getPicturePaths():
18         return []
19
20 def getPlugins():
21         return []
22         
23 def getMenuRegistrationList():
24         return []