Update of /cvsroot/openrpg/openrpg1/plugins
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv829/plugins
Modified Files:
xxcherrypy.py
Log Message:
Fixed a bug that caused Cherrypy to not work on some *nix systems
Index: xxcherrypy.py
===================================================================
RCS file: /cvsroot/openrpg/openrpg1/plugins/xxcherrypy.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** xxcherrypy.py 30 Mar 2007 19:18:04 -0000 1.10
--- xxcherrypy.py 18 Apr 2007 23:51:20 -0000 1.11
***************
*** 7,11 ****
# VEG (march 21, 2007): Now remembers your last web server on/off setting
!
class Plugin(orpg.pluginhandler.PluginHandler):
# Initialization subroutine.
--- 7,11 ----
# VEG (march 21, 2007): Now remembers your last web server on/off setting
!
class Plugin(orpg.pluginhandler.PluginHandler):
# Initialization subroutine.
***************
*** 30,34 ****
def plugin_enabled(self):
self.plugin_addcommand('/cherrypy', self.on_cherrypy, '[on | off | status] - This controls the CherryPy Web Server')
! tmp = socket.gethostbyname_ex('')
for ip in tmp[2]:
self.host = ip
--- 30,34 ----
def plugin_enabled(self):
self.plugin_addcommand('/cherrypy', self.on_cherrypy, '[on | off | status] - This controls the CherryPy Web Server')
! tmp = socket.gethostbyname_ex(socket.gethostname())
for ip in tmp[2]:
self.host = ip
|