示例#1
0
 def _require_client_lock(self, client_name):
     if not self.got_client_lock(client_name):
         raise obnamlib.RepositoryClientNotLocked(client_name=client_name)
示例#2
0
文件: simple.py 项目: secmff/obnam
 def _require_lock(self):
     if not self._lock.got_lock:
         raise obnamlib.RepositoryClientNotLocked(
             client_name=self._client_name)
示例#3
0
 def _require_lock(self):
     if not self.data.locked:
         raise obnamlib.RepositoryClientNotLocked(client_name=self.name)
示例#4
0
文件: simple.py 项目: secmff/obnam
 def unlock(self):
     if not self._lock.got_lock:
         raise obnamlib.RepositoryClientNotLocked()
     self._data.clear()
     self._lock.unchecked_unlock()