source: orange/orange/doc/modules/server_files1.py @ 5893:178146d380fc

Revision 5893:178146d380fc, 389 bytes checked in by blaz <blaz.zupan@…>, 5 years ago (diff)

a regression test script for orngServerFiles, initial commit

Line 
1import orngServerFiles
2
3# remove a file from a local repository and download it from the server
4filename = "urllib2_file.py"
5print orngServerFiles.listfiles("demo")
6orngServerFiles.remove("demo", filename)
7orngServerFiles.download("demo", filename, verbose=False)
8
9info = orngServerFiles.info("demo", filename)
10print "%s: size=%s, datetime=%s" % (filename, info["size"], info["datetime"])
Note: See TracBrowser for help on using the repository browser.