Skip to content

Set transient metadata and pull up __getstate__ method#841

Merged
aaronayres35 merged 4 commits into
masterfrom
getstate-cleanup-for-chaco
Jun 10, 2021
Merged

Set transient metadata and pull up __getstate__ method#841
aaronayres35 merged 4 commits into
masterfrom
getstate-cleanup-for-chaco

Conversation

@aaronayres35
Copy link
Copy Markdown
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
@aaronayres35 aaronayres35 requested a review from rahulporuri June 7, 2021 18:39
Copy link
Copy Markdown
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

Comment thread enable/stacked_container.py Outdated
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