def storefile( self, fname, service ): """ Send a file to the proxy for storing @param fname: String. Contains the file's name @param service: String. Contains the storage service @return A touple that contains the request's status and the file's curren version """ s = FileStream(os.path.basename(fname), self._uid, self._uid, service) s.loadfromfile(fname) code, ver = self._send( Message.SAVESTREAM, s.serialize() ) return code, ver