Logo Search packages:      
Sourcecode: obnam version File versions  Download package

def obnamlib::repo::Repository::open_client (   self,
  client_name 
)
Open a client for read-only operation.

Definition at line 396 of file repo.py.

                                      :
        '''Open a client for read-only operation.'''
        tracing.trace('open r/o client_name=%s' % client_name)
        self.check_format_version()
        client_id = self.clientlist.get_client_id(client_name)
        if client_id is None:
            raise obnamlib.Error('%s is not an existing client' % client_name)
        self.current_client = client_name
        self.current_client_id = client_id
        client_dir = self.client_dir(client_id)
        self.client = obnamlib.ClientMetadataTree(self.fs, client_dir, 
                                                  self.node_size, 
                                                  self.upload_queue_size, 
                                                  self.lru_size, self)
        self.client.init_forest()
        

Generated by  Doxygen 1.6.0   Back to index