changeset 12:d492f137cd3c grumpy-goblin

Fix to cherrypy's start feature for Win users.
author sirebral
date Fri, 24 Jul 2009 10:03:22 -0500
parents dcb7d905debe
children 211ac836b6a0
files orpg/orpg_version.py plugins/xxcherrypy.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/orpg/orpg_version.py	Tue Jul 21 17:20:29 2009 -0500
+++ b/orpg/orpg_version.py	Fri Jul 24 10:03:22 2009 -0500
@@ -4,7 +4,7 @@
 #BUILD NUMBER FORMAT: "YYMMDD-##" where ## is the incremental daily build index (if needed)
 DISTRO = "Traipse"
 DIS_VER = "Grumpy Goblin"
-BUILD = "090721-00"
+BUILD = "090724-00"
 
 # This version is for network capability.
 PROTOCOL_VERSION = "1.2"
--- a/plugins/xxcherrypy.py	Tue Jul 21 17:20:29 2009 -0500
+++ b/plugins/xxcherrypy.py	Fri Jul 24 10:03:22 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)