- 01 Jul, 2011 3 commits
-
-
Łukasz Nowak authored
Also fix formatting a bit.
-
Łukasz Nowak authored
-
Lucas Carvalho authored
It should return the file descriptor instead of file content as string. This implementation does not consume RAM Memory, so it is safer to download big files. When you call file_descriptor.close, it will remove the file from tmp folder automatically.
-
- 30 Jun, 2011 5 commits
-
-
Łukasz Nowak authored
There is no need to read and store downloaded file. Returning the location is good enough.
-
Łukasz Nowak authored
Rest of file requires hexdigested file.
-
Łukasz Nowak authored
-
Łukasz Nowak authored
There is no need to read whole file into memory on library level. So calculate sum in chunks and give request method file descriptor.
-
Lucas Carvalho authored
-
- 23 Jun, 2011 10 commits
-
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
Indeed, some day documentation shall be written, as soon as API will be defined.
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
HTTPConnection accept port as none, there is no need to play with it.
-
Łukasz Nowak authored
-
- 22 Jun, 2011 11 commits
-
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Łukasz Nowak authored
-
Romain Courteaud authored
-
- 21 Jun, 2011 1 commit
-
-
Lucas Carvalho authored
-
- 17 Jun, 2011 1 commit
-
-
Lucas Carvalho authored
The select method must return the file from shacache. And the download method should return the file content instead of path.
-
- 16 Jun, 2011 2 commits
-
-
Lucas Carvalho authored
If the directory has more than one entry, the lib must raise such Error.
-
Lucas Carvalho authored
httplib does not handle the download as expected. The implementation of urlretrieve is much better and consistent, it does the download writing in chunks instead of loading all the file content into memory. Also, the httplib can easily break the file content, if the client does not handle it. And this lib must be very simple. The timeout is not in favor of httplib GET method. Based in the above reasons, httplib was replaced to urlretrieve, once there is no reason to reimplement what already exists.
-
- 15 Jun, 2011 4 commits
-
-
Lucas Carvalho authored
Because the user can just use the 'select' method to retrieve the information from shadir server.
-
Lucas Carvalho authored
-
Lucas Carvalho authored
-
Lucas Carvalho authored
-
- 14 Jun, 2011 3 commits
-
-
Lucas Carvalho authored
Otherwise, all the connections would still alive and this is not a good behavior. Once we need to close the connections it is not possible to return the content of getresponse method, the method read would return an empty string instead of the correct data. And also the data returned by shadir is a json content, to reach a better usage of libnetworkcache the data returned must be loaded by json library, in other words, it must be a list.
-
Lucas Carvalho authored
-
Lucas Carvalho authored
-