diff 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
line wrap: on
line diff
--- a/plugins/xxcherrypy.py	Tue Jul 21 05:34:16 2009 -0500
+++ b/plugins/xxcherrypy.py	Sat Jul 25 17:24:40 2009 -0500
@@ -49,7 +49,10 @@
         self.plugin_addcommand('/cherrypy', self.on_cherrypy, 
             '[on | off | port | status] - This controls the CherryPy Web Server')
 
-        self.on_cherrypy(self.plugindb.GetString("xxcherrypy", "auto_start", None))  # VEG
+        cherry_start = str(self.plugindb.GetString("xxcherrypy", "auto_start", None)) #VEG, DJG, TAS
+        if cherry_start == "on": self.on_cherrypy("on")
+        else: pass
+        del cherry_start
 
         self.cherryhost = 'http://' + self.host + ':' + str(self.port) + '/webfiles/'
         open_rpg.add_component("cherrypy", self.cherryhost)