-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
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
hidden attributes #1091
hidden attributes #1091
Conversation
…into hidden-attr-alt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ethho Let's merge and this will be used in support of other features.
@@ -120,7 +121,7 @@ def table_status(self): | |||
def attributes(self): | |||
if self._attributes is None: | |||
self._init_from_database() # lazy loading from database | |||
return self._attributes | |||
return {k: v for k, v in self._attributes.items() if not v.is_hidden} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this changes from direct access to the _attributes
dictionary to a copy. This means that the following will raise AssertionError as of this PR, but not on master
:
orig_value = my_table.heading.attributes['my_attr']
my_table.heading.attributes['my_attr'] = "foo"
assert my_table.heading.attributes['my_attr'] == "foo"
assert my_table.heading.attributes['my_attr'] != orig_value
Moving development to #1180, which merges |
hidden attributes continued (#1091)
No description provided.