> > Maybe there is a isolated problem in number chunks value, which should > > be round up in order to send the entire file. > > Yes, could be, I didn't test it completely.
"""Send a file over the D-Bus Tube"""
size = os.path.getsize(filename)
f = open(filename)
chunk_size = 1000
chunks = size / chunk_size
if (size%chunk_size != 0):
chunks += 1
_______________________________________________ Sugar mailing list [email protected] http://lists.laptop.org/listinfo/sugar

