Exemple #1
0
    def __init__(self, path, *args, **kwargs):
        root = RootResource()
        server.Site.__init__(self, root, *args, **kwargs)

        services = {}
        services["StaticEngine"] = root.primaryChild = engines.StaticEngine(
            path)

        def register(service, path, *args, **kwargs):
            sobj = service("/" + path, *args, **kwargs)
            services[service.__name__] = sobj
            root.putChild(path, sobj)

        register(engines.AJAXEngine, "e")
        register(engines.FeedbackEngine, "feedback")
        register(engines.AuthgateEngine, "auth")
        register(engines.AdminEngine, "adminengine", services)
Exemple #2
0
    def __init__(self, path, *args, **kwargs):
        root = RootResource()
        server.Site.__init__(self, root, *args, **kwargs)

        services = {}
        services["StaticEngine"] = root.primaryChild = engines.StaticEngine(
            path)

        def register(service, path, *args, **kwargs):
            sobj = service("/" + path, *args, **kwargs)
            services[service.__name__] = sobj
            root.putChild(path, sobj)

        register(engines.AJAXEngine, "e")
        register(engines.FeedbackEngine, "feedback")
        register(engines.AdminEngine, "adminengine", services)
        register(engines.LocalizationEngine, "lang")
        if config.athemeengine["xmlrpc_path"]:
            register(engines.AthemeEngine, "a")
Exemple #3
0
    def __init__(self, path, *args, **kwargs):
        root = RootResource()
        kwargs["timeout"] = config.HTTP_REQUEST_TIMEOUT
        server.Site.__init__(self, root, *args, **kwargs)
        services = {}
        services["StaticEngine"] = root.primaryChild = engines.StaticEngine(
            path)

        def register(service, path, *args, **kwargs):
            sobj = service("/" + path, *args, **kwargs)
            services[service.__name__] = sobj
            root.putChild(path, sobj)

        register(engines.AJAXEngine, "e")
        try:
            register(engines.WebSocketEngine, "w")
        except AttributeError:
            pass
        register(engines.AuthgateEngine, "auth")
        register(engines.AdminEngine, "adminengine", services)