Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
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
Exemplo n.º 4
0
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
Exemplo n.º 5
0
 def __init__(self):
     JXGServerModule.__init__(self)
Exemplo n.º 6
0
 def __init__(self):
     JXGServerModule.__init__(self)
Exemplo n.º 7
0
 def __init__(self):
     self.djmin = 9641.01
     self.djmax = 9735.93
     self.daxmin = 5559.47
     self.daxmax = 5620.13
     JXGServerModule.__init__(self)
Exemplo n.º 8
0
 def __init__(self):
     self.djmin = 9641.01
     self.djmax = 9735.93
     self.daxmin = 5559.47
     self.daxmax = 5620.13
     JXGServerModule.__init__(self)