Exemplo n.º 1
0
    def load_data(self):
        simpleapp = SimpleApplication(tc.appname, tc.port)

        conn = Connection(tc.hostname, HTTPDigestAuth(tc.admin, tc.password))
        hostname = Host.list(conn)[0]
        exampleapp = simpleapp.create(conn, hostname)

        loader = MLCPLoader()
        loader.load_directory(conn, exampleapp['content'],
                              "data",
                              collections=["example1"], prefix="/test/data1")
    def load_data(self):
        simpleapp = SimpleApplication(tc.appname, tc.port)

        conn = Connection(tc.hostname, HTTPDigestAuth(tc.admin, tc.password))
        hostname = Host.list(conn)[0]
        exampleapp = simpleapp.create(conn, hostname)

        loader = MLCPLoader()
        loader.load_directory(conn,
                              exampleapp['content'],
                              "data",
                              collections=["example1"],
                              prefix="/test/data1")
 def setup_mlcp(self):
     loader = MLCPLoader()
     loader.clear_directory()
     loader.download_mlcp()
Exemplo n.º 4
0
 def setup_mlcp(self):
     loader = MLCPLoader()
     loader.clear_directory()
     loader.download_mlcp()