Logo Search packages:      
Sourcecode: ubuntuone-client version File versions

def ubuntuone::syncdaemon::sync::SyncStateMachineRunner::get_file (   self,
  event,
  params,
  hash 
)

Get the contents for the file.

Definition at line 483 of file sync.py.

00483                                            :
        """Get the contents for the file."""
        self.key.set(server_hash=hash)
        self.m.fs.create_partial(node_id=self.key['node_id'],
                                 share_id=self.key['share_id'])
        self.m.action_q.download(
            share_id=self.key['share_id'], node_id=self.key['node_id'],
            server_hash=hash,
            fileobj_factory=lambda: self.m.fs.get_partial_for_writing(
                node_id=self.key['node_id'],
                share_id=self.key['share_id'])
            )

    def reget_file(self, event, params, hash):


Generated by  Doxygen 1.6.0   Back to index