Lines 83-89
Link Here
|
83 |
|
83 |
|
84 |
parts = baseurl.split("://",1) |
84 |
parts = baseurl.split("://",1) |
85 |
if len(parts) != 2: |
85 |
if len(parts) != 2: |
86 |
raise ValueError("Provided URL does not " + \ |
86 |
raise ValueError("Provided URI does not " + \ |
87 |
"contain protocol identifier. '%s'" % baseurl) |
87 |
"contain protocol identifier. '%s'" % baseurl) |
88 |
protocol,url_parts = parts |
88 |
protocol,url_parts = parts |
89 |
del parts |
89 |
del parts |
Lines 291-297
Link Here
|
291 |
|
291 |
|
292 |
def dir_get_list(baseurl,conn=None): |
292 |
def dir_get_list(baseurl,conn=None): |
293 |
"""(baseurl[,connection]) -- Takes a base url to connect to and read from. |
293 |
"""(baseurl[,connection]) -- Takes a base url to connect to and read from. |
294 |
URL should be in the for <proto>://<site>[:port]<path> |
294 |
URI should be in the form <proto>://<site>[:port]<path> |
295 |
Connection is used for persistent connection instances.""" |
295 |
Connection is used for persistent connection instances.""" |
296 |
|
296 |
|
297 |
if not conn: |
297 |
if not conn: |
Lines 339-345
Link Here
|
339 |
|
339 |
|
340 |
def file_get_metadata(baseurl,conn=None, chunk_size=3000): |
340 |
def file_get_metadata(baseurl,conn=None, chunk_size=3000): |
341 |
"""(baseurl[,connection]) -- Takes a base url to connect to and read from. |
341 |
"""(baseurl[,connection]) -- Takes a base url to connect to and read from. |
342 |
URL should be in the for <proto>://<site>[:port]<path> |
342 |
URI should be in the form <proto>://<site>[:port]<path> |
343 |
Connection is used for persistent connection instances.""" |
343 |
Connection is used for persistent connection instances.""" |
344 |
|
344 |
|
345 |
if not conn: |
345 |
if not conn: |
Lines 390-396
Link Here
|
390 |
|
390 |
|
391 |
def file_get(baseurl,dest,conn=None,fcmd=None): |
391 |
def file_get(baseurl,dest,conn=None,fcmd=None): |
392 |
"""(baseurl,dest,fcmd=) -- Takes a base url to connect to and read from. |
392 |
"""(baseurl,dest,fcmd=) -- Takes a base url to connect to and read from. |
393 |
URL should be in the for <proto>://[user[:pass]@]<site>[:port]<path>""" |
393 |
URI should be in the form <proto>://[user[:pass]@]<site>[:port]<path>""" |
394 |
|
394 |
|
395 |
if not fcmd: |
395 |
if not fcmd: |
396 |
return file_get_lib(baseurl,dest,conn) |
396 |
return file_get_lib(baseurl,dest,conn) |
Lines 418-424
Link Here
|
418 |
|
418 |
|
419 |
def file_get_lib(baseurl,dest,conn=None): |
419 |
def file_get_lib(baseurl,dest,conn=None): |
420 |
"""(baseurl[,connection]) -- Takes a base url to connect to and read from. |
420 |
"""(baseurl[,connection]) -- Takes a base url to connect to and read from. |
421 |
URL should be in the for <proto>://<site>[:port]<path> |
421 |
URI should be in the form <proto>://<site>[:port]<path> |
422 |
Connection is used for persistent connection instances.""" |
422 |
Connection is used for persistent connection instances.""" |
423 |
|
423 |
|
424 |
if not conn: |
424 |
if not conn: |