comparison plugins/xxcherrypy.py @ 19:78407d627cba traipse_dev

Beginning of Code Clean-up. Some code untested, may break!
author sirebral
date Sat, 25 Jul 2009 17:24:40 -0500
parents 67b900deb35c
children c54768cffbd4
comparison
equal deleted inserted replaced
18:67b900deb35c 19:78407d627cba
47 self.port = int(self.plugindb.GetString("xxcherrypy", "port", 8080)) 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 cherry_start = str(self.plugindb.GetString("xxcherrypy", "auto_start", None)) #VEG, DJG, TAS
53 if cherry_start == "on": self.on_cherrypy("on")
54 else: pass
55 del cherry_start
53 56
54 self.cherryhost = 'http://' + self.host + ':' + str(self.port) + '/webfiles/' 57 self.cherryhost = 'http://' + self.host + ':' + str(self.port) + '/webfiles/'
55 open_rpg.add_component("cherrypy", self.cherryhost) 58 open_rpg.add_component("cherrypy", self.cherryhost)
56 59
57 def plugin_disabled(self): 60 def plugin_disabled(self):