We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Today there are several properties that are unpopulated (views on workbooks, connections in workbooks) until you call a populate method.
That makes sense, it requires a new API call.
However, the logic is hidden up on the endpoint and not on the object itself. I think it's a little unintuitive.
Example:
_, wbs = server.workbooks.get() wb = wbs.pop() wb.name >>> '1234-5678-123456' wb.views >>> UnpopulatedPropertyError
To get that populated you would call
server.workbooks.populate_views(wb)
But it feels a bit weird, because the method sort of implies I'm populating on the workbooks endpoint.
More naturally, it could be
wb.populate_views() wb.views >>> [<view obj>, <view obj>]
Or even call that automatically on access of wb.views for the first time
wb.views
The text was updated successfully, but these errors were encountered:
Old proposal which seems to have been implemented long ago.
Sorry, something went wrong.
No branches or pull requests
Today there are several properties that are unpopulated (views on workbooks, connections in workbooks) until you call a populate method.
That makes sense, it requires a new API call.
However, the logic is hidden up on the endpoint and not on the object itself. I think it's a little unintuitive.
Example:
To get that populated you would call
But it feels a bit weird, because the method sort of implies I'm populating on the workbooks endpoint.
More naturally, it could be
Or even call that automatically on access of
wb.views
for the first timeThe text was updated successfully, but these errors were encountered: