Beispiel #1
0
async def create_inconsistent_workspace(
    user_fs: UserFS, name=EntryName("w")) -> WorkspaceFS:
    wid = await user_fs.workspace_create(name)
    workspace = user_fs.get_workspace(wid)
    await make_workspace_dir_inconsistent(workspace, FsPath("/rep"))
    return workspace
Beispiel #2
0
 def __init__(self, user_fs: UserFS, id: EntryID):
     self.workspace = user_fs.get_workspace(id)
     read_only = self.workspace.get_workspace_entry().role == WorkspaceRole.READER
     super().__init__(user_fs, id, read_only=read_only)