From 614679e021c6c2c4a41e5937cf8e5d92cf134d80 Mon Sep 17 00:00:00 2001 From: Bryant Howell Date: Mon, 6 Jan 2020 14:47:57 -0600 Subject: [PATCH] Updated README to reflect the returns from lock and unlock_permissions --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1ca0f52..57c95a7 100644 --- a/README.md +++ b/README.md @@ -912,12 +912,18 @@ For Projects, since the standard `query_project()` method returns the Project ob Projects have additional commands that the other classes do not: -`Project.lock_permissions()` +`Project.lock_permissions() -> Project` -`Project.unlock_permission()` +`Project.unlock_permission() -> Project` `Project.are_permissions_locked()` +If you are locking or unlocking permissions, you should replace the project object you used with the response that comes back: + + proj = t.projects.query_project('My Project') + proj = proj.lock_permissions() # You want to updated object returned here to use from here on out + ... + You access the default permissions objects with the following, which reference the objects of the correct type that have already been built within the Project object: `Project.workbook_defaults`