def __init__(self): ############################ # # Config lines # ############################ # Command to start cocoa self.cmd_cocoa = "/share8/opt/cocoa/cocoa" # If you're using Windows #cmd_cocoa = r"C:\cocoa\cocoa.bat" # Shouldn't be changed, except you know what you're doing self.debug = False ############################ self.debugOutput = cStringIO.StringIO() JXGServerModule.__init__(self) return
def import_module(plugin, resp): try: __import__(plugin, None, None, ['']) tp = JXGServerModule.__subclasses__() if len(tp) == 0: resp.error("error loading module \"" + plugin + "\"") return tp tp = tp[0]() if not tp.isJXGServerModule: resp.error("not a jxg server module: \"" + plugin + "\"") return tp except Exception as e: resp.error("error loading jxg server module: \"" + plugin + "\": " + e.__str__()) return tp return tp
def __init__(self): JXGServerModule.__init__(self)
def __init__(self): self.djmin = 9641.01 self.djmax = 9735.93 self.daxmin = 5559.47 self.daxmax = 5620.13 JXGServerModule.__init__(self)