comparison plugins/xxcherrypy.py @ 18:67b900deb35c traipse_dev

One more run before moving to stable.
author sirebral
date Tue, 21 Jul 2009 05:34:16 -0500
parents 0b8b7e3ed78d
children 78407d627cba
comparison
equal deleted inserted replaced
17:83fb9a73a30f 18:67b900deb35c
42 def plugin_enabled(self): 42 def plugin_enabled(self):
43 self.host = parseString( 43 self.host = parseString(
44 urllib.urlopen("http://orpgmeta.appspot.com/myip").read() 44 urllib.urlopen("http://orpgmeta.appspot.com/myip").read()
45 ).documentElement.getAttribute("ip") 45 ).documentElement.getAttribute("ip")
46 46
47 self.port = int(self.plugindb.GetString("xxcherrypy", "port", None)) or 6775 47 self.port = int(self.plugindb.GetString("xxcherrypy", "port", 8080)) or 6775
48 48
49 self.plugin_addcommand('/cherrypy', self.on_cherrypy, 49 self.plugin_addcommand('/cherrypy', self.on_cherrypy,
50 '[on | off | port | status] - This controls the CherryPy Web Server') 50 '[on | off | port | status] - This controls the CherryPy Web Server')
51 51
52 self.on_cherrypy(self.plugindb.GetString("xxcherrypy", "auto_start", None)) # VEG 52 self.on_cherrypy(self.plugindb.GetString("xxcherrypy", "auto_start", None)) # VEG