Skip to content
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

Set transient metadata and pull up __getstate__ method #841

Merged
merged 4 commits into from
Jun 10, 2021

Conversation

aaronayres35
Copy link
Contributor

Ref:
enthought/chaco#764 (comment)
Also see the __getstate__ methods defined on HPlotContainer and VPlotContainer in that PR.

@aaronayres35 aaronayres35 changed the title Set transient metadata on traits who (according to subclasses) should be transient Set transient metadata and pull up __getstate__ method Jun 7, 2021
Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

enable/stacked_container.py Outdated Show resolved Hide resolved
Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>
@aaronayres35 aaronayres35 merged commit 98bed14 into master Jun 10, 2021
aaronayres35 added a commit that referenced this pull request Jun 10, 2021
* set transient metadata on traits who (according to subclasses) should be transient

* import Int

* actually we do need getstate because stack_index is a class attribute.  Pull getstate method down here to the baseclass

* remove PICKLE FIXME comment

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>
aaronayres35 added a commit that referenced this pull request Jun 11, 2021
* remove __getstate__ methods and use transient metadata (#804)

* remove __getstate__ methods and use transient metadata

* remove _scroll_origin

* Update enable/abstract_window.py

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>

* Set transient metadata and pull up __getstate__ method (#841)

* set transient metadata on traits who (according to subclasses) should be transient

* import Int

* actually we do need getstate because stack_index is a class attribute.  Pull getstate method down here to the baseclass

* remove PICKLE FIXME comment

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>

Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com>
@rahulporuri rahulporuri deleted the getstate-cleanup-for-chaco branch June 14, 2021 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants